private void Awake() { mapSystem = GameObject.Find("MapSystem").GetComponent <MapSystem>(); pathfindingSystem = GameObject.Find("PathfindingSystem").GetComponent <PathfindingSystem>(); population = new Data.Population { NextId = 0, Colonists = new List <Colonist>(), }; entitiesObject = GameObject.Find("Entities"); colonistPrefab = Resources.Load <GameObject>("Prefabs/Colonist"); }
void Awake() { uiData = new Data.UI { Mode = Type.UIMode.None, }; mapSystem = GameObject.Find("MapSystem").GetComponent <MapSystem>(); mainMenu = GameObject.Find("Main Menu").AddComponent <MainMenu>(); infoWindow = gameObject.AddComponent <InfoWindow>(); entityLabeler = gameObject.AddComponent <EntityLabeler>(); _ = gameObject.AddComponent <CameraController>(); _ = gameObject.AddComponent <SelectionHandler>(); }
void Awake() { mapSystem = GameObject.Find("MapSystem").GetComponent <MapSystem>(); }