Exemple #1
0
 void Start()
 {
     StateManager = new State_Manager<Wolf_Behavior>(this);
     maneuver = new Maneuver(this);
     d_Attack = new Direct_Attack(this);
     attackpoint = this.transform.FindChild("AttackPoint").gameObject;
     blnAlive = true;
     nmpPath = new NavMeshPath ();
     nmaAgent = this.gameObject.GetComponent<NavMeshAgent> ();
     intHealth = 50;
     intDamage = 2000;
     blnExecBehavior = false;
 }
Exemple #2
0
 void Start()
 {
     StateManager    = new State_Manager <Wolf_Behavior>(this);
     maneuver        = new Maneuver(this);
     d_Attack        = new Direct_Attack(this);
     attackpoint     = this.transform.FindChild("AttackPoint").gameObject;
     blnAlive        = true;
     nmpPath         = new NavMeshPath();
     nmaAgent        = this.gameObject.GetComponent <NavMeshAgent> ();
     intHealth       = 50;
     intDamage       = 2000;
     blnExecBehavior = false;
 }