コード例 #1
0
        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");
        }
コード例 #2
0
        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>();
        }
コード例 #3
0
 void Awake()
 {
     mapSystem = GameObject.Find("MapSystem").GetComponent <MapSystem>();
 }