Exemplo 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();
 }
Exemplo 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 ();
 }