Пример #1
0
    // Use this for initialization
    void Start()
    {
        Time.timeScale = 1;
        Object.DontDestroyOnLoad(this.gameObject);
        endprompt.gameObject.SetActive(false);

        Cursor.visible   = false;
        Cursor.lockState = CursorLockMode.Locked;

        //initialize controls
        CustomController.LoadAllKeys();
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        controlbuttonArray = new GameObject[] { ReadyCameraControl, TakePictureControl,
                                                ThrowObjectControl, PauseControl, RunControl, CrouchControl, RestoreDefaultsControl, Exit };

        settingsButtonArray = new GameObject[] { DecreaseText,
                                                 IncreaseText, FullScreenOn, FullScreenOff, IncreaseBGM, DecreaseBGM, IncreaseSFX, DecreaseSFX, Exit };

        //if controls are saved in playerprefs load them
        CustomController.LoadAllKeys();
        LoadTextSpeed();
        audioManager = FindObjectOfType <AudioManager>();

        UpdateButtonText();
        UpdateSettingsText();
    }