Add source files
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x020000F8 RID: 248
|
||||
public class FlockWaypointTrigger : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06001594 RID: 5524 RVA: 0x0019A898 File Offset: 0x00198A98
|
||||
public void Start()
|
||||
{
|
||||
if (this._flockChild == null)
|
||||
{
|
||||
this._flockChild = base.transform.parent.GetComponent<FlockChild>();
|
||||
}
|
||||
float num = Random.Range(this._timer, this._timer * 3f);
|
||||
base.InvokeRepeating("Trigger", num, num);
|
||||
}
|
||||
|
||||
// Token: 0x06001595 RID: 5525 RVA: 0x0019A8EE File Offset: 0x00198AEE
|
||||
public void Trigger()
|
||||
{
|
||||
this._flockChild.Wander(0f);
|
||||
}
|
||||
|
||||
// Token: 0x040025AC RID: 9644
|
||||
public float _timer = 1f;
|
||||
|
||||
// Token: 0x040025AD RID: 9645
|
||||
public FlockChild _flockChild;
|
||||
}
|
||||
Reference in New Issue
Block a user