private void Start() { cameraController = GetComponent <MapSceneCameraController>(); inputManager = GetComponent <TouchInputManager>(); inputManager.touchStart += TouchStart; inputManager.touchMove += TouchMove; inputManager.touchEnd += TouchEnd; mapUnitMask = LayerMask.GetMask("Unit"); }
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 Awake() { //gameTileClickHandler.OnGameTileClickedEvent += OnGameTileClickedEvent; inputManager = GetComponent <MapSceneInputManager>(); worldMapManager = GetComponent <WorldMapManager>(); interactableManager = GetComponent <MapInteractableManager>(); cameraController = GetComponent <MapSceneCameraController>(); mapResourcesManager = GetComponent <MapResourceManager>(); animalManager = GetComponent <MapAnimalManager>(); }