public override void OnEnter() { base.OnEnter(); Player = GameObject.FindGameObjectWithTag("Player"); Self = this.controller.gameObject; PlayerTransform = Player.transform; SelfTransform = Self.transform; Brain = Self.GetComponent <AIThreeController>(); }
public override void OnEnter() { base.OnEnter(); Self = this.controller.gameObject; SelfTransform = Self.transform; Brain = Self.GetComponent <AIThreeController>(); MonoBehaviour.Instantiate(Brain.Rock, SelfTransform.position, SelfTransform.rotation); }
public override void OnEnter() { base.OnEnter(); Player = GameObject.FindGameObjectWithTag("Player"); Self = this.controller.gameObject; PlayerTransform = Player.transform; SelfTransform = Self.transform; Brain = Self.GetComponent <AIThreeController>(); LookDir = (SelfTransform.position - PlayerTransform.position); //Debug.Log(LookDir); }
public Flee(T stateName, AIThreeController controller, float minDuration) : base(stateName, controller, minDuration) { }