Esempio n. 1
0
 void Awake()
 {
     _aiController = GameObject.FindGameObjectWithTag("AIPlayer").GetComponent <CharacterController> ();
     _movement     = gameObject.AddComponent <AI.AIPlayerMovement> ();
     _slash        = gameObject.AddComponent <AI.AISlash> ();
     _relics       = gameObject.AddComponent <AI.AIRelicManager> ();
     _health       = gameObject.AddComponent <AI.AIHealth> ();
     _health.TotalStuff();
 }
Esempio n. 2
0
 void Awake()
 {
     _aiController = GameObject.FindGameObjectWithTag ("AIPlayer").GetComponent<CharacterController> ();
     _movement = gameObject.AddComponent<AI.AIPlayerMovement> ();
     _slash = gameObject.AddComponent<AI.AISlash> ();
     _relics = gameObject.AddComponent<AI.AIRelicManager> ();
     _health = gameObject.AddComponent<AI.AIHealth> ();
     _health.TotalStuff ();
 }