public void Start() { unitManager = GetComponent <MapUnitManager>(); mapParent = GameObject.Find("TerrainMap").transform; Invoke("Initialize", .05f); }
private void Start() { unitManager = GetComponent <MapUnitManager>(); myShip = Instantiate(shipPrefab, unitManager.unitParent); unitManager.myShip = myShip; }
private void Start() { resourceList = GameManager.instance.gamedatabaseManager.mapResourcesObjects.Values.ToList(); unitManager = GetComponent <MapUnitManager>(); //Initialize(); }
private void Start() { GameManager.instance.globalCountryManager.OnAddCountryEvent += OnAddCountryEvent; GameManager.instance.globalCountryManager.OnDeleteCountryEvent += OnDeleteCountryEvent; unitManager = GetComponent <MapUnitManager>(); Initialize(); }
void Awake() { instance = this; terrainMap = TerrainMapController.instance.tilemap; Pathfinder.Initialize(terrainMap); unitManager = GetComponent <MapUnitManager>(); resourceManager = GetComponent <MapResourceManager>(); castleManager = GetComponent <MapCastleManager>(); cameraController = GetComponent <MapSceneCameraController>(); }
private void Start() { unitManager = MapSceneManager.instance.unitManager; unitManager.inputManager.OnGameTileClickEvent += OnGameTileClickedEvent; }
private void Start() { displacement = Camera.main.transform.position - transform.position; unitManager = GetComponent <MapUnitManager>(); }
private void Start() { unitManager = GetComponent <MapUnitManager>(); Initialize(); }