Add source files
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x020000F3 RID: 243
|
||||
public class LookAtCamera : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06001559 RID: 5465 RVA: 0x0019867F File Offset: 0x0019687F
|
||||
public void Start()
|
||||
{
|
||||
if (this.lookAtCamera == null)
|
||||
{
|
||||
this.lookAtCamera = Camera.main;
|
||||
}
|
||||
if (this.lookOnlyOnAwake)
|
||||
{
|
||||
this.LookCam();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600155A RID: 5466 RVA: 0x001986A8 File Offset: 0x001968A8
|
||||
public void Update()
|
||||
{
|
||||
if (!this.lookOnlyOnAwake)
|
||||
{
|
||||
this.LookCam();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600155B RID: 5467 RVA: 0x001986B8 File Offset: 0x001968B8
|
||||
public void LookCam()
|
||||
{
|
||||
base.transform.LookAt(this.lookAtCamera.transform);
|
||||
}
|
||||
|
||||
// Token: 0x0400253C RID: 9532
|
||||
public Camera lookAtCamera;
|
||||
|
||||
// Token: 0x0400253D RID: 9533
|
||||
public bool lookOnlyOnAwake;
|
||||
}
|
||||
Reference in New Issue
Block a user