// Start is called before the first frame update private void Awake() { gameManager = GameObject.Find("GameManager").GetComponent <GameManager>(); gameWorld = GameObject.Find("GameWorld").GetComponent <GameWorld>(); boundEntity = GetComponent <Entity>(); grid = GameObject.Find("GameWorld").GetComponent <PathGrid>(); aiDirector = gameManager.GetComponent <WorldAIDirector>(); battleEntryScreen = GameObject.Find("BattleEntry").GetComponent <BattleEntryScript>(); }
// Start is called before the first frame update void Awake() { battleEntryScreen = GameObject.Find("BattleEntry").GetComponent <BattleEntryScript>(); line = GameObject.Find("Path"); gameManager = GameObject.Find("GameManager").GetComponent <GameManager>(); world = GameObject.Find("GameWorld").GetComponent <GameWorld>(); grid = GameObject.Find("GameWorld").GetComponent <PathGrid>(); boundEntity = GetComponent <Entity>(); GetComponent <Entity>().SetSoldiers(5); }