void Start() { GameObject BattleSystem = GameObject.FindGameObjectWithTag("Battle_System"); script = BattleSystem.GetComponent <BattleSystem>(); acScript = GameObject.FindGameObjectWithTag("Animal_Chooser").GetComponent <AnimalsChoose>(); animals = new GameObject[script.PlayerOneArmy.Animals.Length]; deadEnemy = new Vector3(int.MaxValue, int.MaxValue, int.MaxValue); if (acScript.Difficult == (int)ComputerLevel.EASY) { targetFinder = new ClosestAnimal(); } else if (acScript.Difficult == (int)ComputerLevel.MEDIUM) { targetFinder = new LowestHPAnimal(); } }
/// <summary>Actor performs the indicated behavior</summary> public void cs_set_behavior(IAIBehavior ai_behavior) { }