Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     // find reference to undo script
     undoScript = undoButton.GetComponent <UndoMoveObject>();
     // load config
     PlayerOptions.loadConfig();
 }
 private void Start()
 {
     // load the player config for use in picking up keys
     PlayerOptions.loadConfig();
     // set static variables to variables as set in inspector
     inventorySlotsStatic = inventorySlots;
     keyTypesStatic       = keyTypes;
 }
Esempio n. 3
0
 void Start()
 {
     PlayerOptions.loadConfig();
     gameUI.gameObject.SetActive(true);
     menuUI.gameObject.SetActive(false);
     settingsUI.gameObject.SetActive(false);
     Time.timeScale = 1f;
 }
Esempio n. 4
0
    void OnGUI()
    {
        if (checkForKey)
        {
            // get the event
            Event e = Event.current;

            // if the event is a key, the set the hotkey to that key and stop checking for a new key
            if (e.isKey)
            {
                PlayerOptions.loadConfig();
                changeHotkey(keyToChange, e.keyCode);
                PlayerOptions.saveConfig();
                checkForKey         = false;
                pauseScript.enabled = true;
            }
        }
    }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     PlayerOptions.loadConfig();
     rb = GetComponent <Rigidbody2D>();
 }
 void Start()
 {
     // load config
     PlayerOptions.loadConfig();
 }
 void Start()
 {
     // load player options to movement
     PlayerOptions.loadConfig();
 }