// 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;
    }
示例#2
0
    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);*/
        }
    }
示例#3
0
 void DelayStartMoveCamera()
 {
     MoveCameraByPath.GetInstance().StartMoveCamera();
 }