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