public void ChooseRandomTargetingLogic() { Debug.Log("ChooseRandomTargetingLogic() called..."); int randomNumber = Random.Range(0, 2); if (randomNumber == 0) { SetTargetDefender(EntityLogic.GetClosestEnemy(this)); } else { SetTargetDefender(EntityLogic.GetEnemyWithLowestCurrentHP(this)); } Debug.Log("ChooseRandomTargetingLogic() set target as: " + myCurrentTarget.name); }