Exemple #1
0
 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);
    }
Exemple #3
0
    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);
    }
Exemple #4
0
 public Flee(T stateName, AIThreeController controller, float minDuration) : base(stateName, controller, minDuration)
 {
 }