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