//recalculate path points void Awake() { WaypointManager.AddPath(gameObject); //do not recalculate automatically with runtime created paths if (bPoints == null || bPoints.Count == 0) { return; } CalculatePath(); }
// Token: 0x0600072B RID: 1835 RVA: 0x0002F3E0 File Offset: 0x0002D7E0 private void Awake() { IEnumerator enumerator = base.transform.GetEnumerator(); try { while (enumerator.MoveNext()) { object obj = enumerator.Current; Transform transform = (Transform)obj; WaypointManager.AddPath(transform.gameObject); } } finally { IDisposable disposable; if ((disposable = (enumerator as IDisposable)) != null) { disposable.Dispose(); } } DOTween.Init(null, null, null); }
//auto-add to WaypointManager void Awake() { WaypointManager.AddPath(gameObject); }