/* Functions */ protected override void Awake() { base.Awake(); this.mLookAtAction = this.GetComponent <JCS_3DLookAtAction>(); mLookAtAction.SetTargetTransform(mLookPoint); }
/* Functions */ private void Awake() { this.mGoStraightAction = this.GetComponent <JCS_3DGoStraightAction>(); this.mLookAtAction = this.GetComponent <JCS_3DLookAtAction>(); this.mAdjustTimerTrigger = this.GetComponent <JCS_AdjustTimeTrigger>(); this.mAdjustTimerTrigger.actions = DoPath; #if UNITY_EDITOR if (mPoints.Count == 0) { JCS_Debug.LogWarning("Path action with 0 path point is not valid"); } #endif GetNextPoint(); }