Exemplo n.º 1
0
    private void SpawnButton(KeyBind parBind)
    {
        KeyBindingButton btn = Instantiate(prefab, spawnLocation);

        btn.Setup(parBind, delegate { WaitFor(parBind, false, btn); }, delegate { WaitFor(parBind, true, btn); });
        bindingButtons.Add(btn);
    }
Exemplo n.º 2
0
 private void WaitFor(KeyBind key, bool alt, KeyBindingButton btn)
 {
     selectedKey   = key;
     selectedBtn   = btn;
     waitingForKey = true;
     AltKey        = alt;
     StartCoroutine(GetKey());
 }