// Use this for initialization void Awake() { _Instance = this; IsMovePlayer = false; /*if (GlobalData.GetInstance().gameMode == GameMode.SoloMode) { * IsMovePlayer = false; * } * else { * IsMovePlayer = true; * }*/ NoiseScript = GetComponent <NoiseEffect>(); ScreenOverScript = GetComponent <ScreenOverlay>(); ScreenOverScript.enabled = false; GmObj = gameObject; GmTran = transform; InitCamPathInfo(); if (CamPathTest != null) { Invoke("TestDelayMoveCamera", 1f); } InputEventCtrl.GetInstance().ClickStartBtOneEvent += clickStartBtOneEvent; }
public void ShowAllCameras() { BackgroudGmCtrl.GetInstance().CloseBackgroudImg(); if (GlobalData.GetInstance().gameMode == GameMode.OnlineMode) { StartGameTimeCtrl.GetInstance().DelayPlayTime(); } else { CloseAllGUI(); MoveCameraByPath.GetInstance().StartMoveCamera(); /*CancelInvoke("DelayStartMoveCamera"); * Invoke("DelayStartMoveCamera", 0.5f);*/ } }
void DelayStartMoveCamera() { MoveCameraByPath.GetInstance().StartMoveCamera(); }