void Awake() { instance = this; //init MapCamera rawPos = mapCamera.transform.position; rawCameraSize = mapCamera.orthographicSize; moveTargetPos = rawPos; scaleTargetSize = rawCameraSize; }
public void Init() { _islandManager = FindObjectOfType <IslandManager>(); _gameCameraManager = FindObjectOfType <GameCameraManager>(); _mapCameraManager = FindObjectOfType <MapCameraManager>(); }