/** What are we trying to do with this? * We want to establish the position of each enemy relative to the closest * player character * We want to establish this distance in terms of Grids, not raw magnitude * * After caching this distance, we can then use it in two places * * First to determine what an enemies action should be, depdening on it's * proximity to an enemy * * Seconds, is in the sorting of the enemies at the beginning of their turn */ private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } }
void Start() { enemyPlacementController = GameObject.FindObjectOfType <EnemyPlacementController>(); }