Exemplo n.º 1
0
 private void OnSelectionChange(bool yes)
 {
     if (yes)
     {
         IN_GAME_MAIN_CAMERA.cameraMode = camera;
         PlayerPrefs.SetString("cameraType", camera.ToString().ToUpper());
     }
 }
Exemplo n.º 2
0
 private void Start()
 {
     if (PlayerPrefs.HasKey("cameraType"))
     {
         if (camera.ToString().ToUpper() == PlayerPrefs.GetString("cameraType").ToUpper())
         {
             GetComponent <UICheckbox>().isChecked = true;
         }
         else
         {
             GetComponent <UICheckbox>().isChecked = false;
         }
     }
 }
Exemplo n.º 3
0
    public CAMERA_TYPE chageCamera()
    {
        bool        flag       = false;
        CAMERA_TYPE cameraMode = IN_GAME_MAIN_CAMERA.cameraMode;
        int         num        = 0;

        while (!flag)
        {
            num++;
            switch (cameraMode)
            {
            case CAMERA_TYPE.ORIGINAL:
                cameraMode        = CAMERA_TYPE.WOW;
                Screen.lockCursor = false;
                if (((int)FengGameManagerMKII.settings[0x146]) == 0)
                {
                    flag = true;
                }
                break;

            case CAMERA_TYPE.WOW:
                cameraMode        = CAMERA_TYPE.TPS;
                Screen.lockCursor = true;
                if (((int)FengGameManagerMKII.settings[0x145]) == 0)
                {
                    flag = true;
                }
                break;

            case CAMERA_TYPE.TPS:
                cameraMode        = CAMERA_TYPE.oldTPS;
                Screen.lockCursor = true;
                if (((int)FengGameManagerMKII.settings[0x147]) == 0)
                {
                    flag = true;
                }
                break;

            case CAMERA_TYPE.oldTPS:
                cameraMode        = CAMERA_TYPE.ORIGINAL;
                Screen.lockCursor = false;
                if (((int)FengGameManagerMKII.settings[0x144]) == 0)
                {
                    flag = true;
                }
                break;
            }
            if (num > 10)
            {
                cameraMode        = CAMERA_TYPE.ORIGINAL;
                Screen.lockCursor = false;
                flag = true;
            }
        }
        PrefersCyan.SetString("string_cameraType", cameraMode.ToString());
        return(cameraMode);
    }