Exemple #1
0
    public void SetCameraPointInfo()
    {
        if (GlobalData.GetInstance().gameMode == GameMode.SoloMode)
        {
            WaterwheelPlayerCtrl aimObjScripte = WaterwheelPlayerCtrl.GetInstance();
            if (aimObjScripte == null)
            {
                return;
            }

            mCamPoint_first   = aimObjScripte.GetCamPointFirst();
            mCamPoint_right   = aimObjScripte.GetCamPointRight();
            mCamPoint_forward = aimObjScripte.GetCamPointForward();
            CamPointUp        = aimObjScripte.GetCamPointUp();
        }
        else
        {
            WaterwheelPlayerNetCtrl aimObjNetScripte = WaterwheelPlayerNetCtrl.GetInstance();
            if (aimObjNetScripte == null)
            {
                return;
            }

            mCamPoint_first   = aimObjNetScripte.GetCamPointFirst();
            mCamPoint_right   = aimObjNetScripte.GetCamPointRight();
            mCamPoint_forward = aimObjNetScripte.GetCamPointForward();
            CamPointUp        = aimObjNetScripte.GetCamPointUp();
        }
    }