示例#1
0
    void RefreshKeys()
    {
        // get keybind string parameter must match the keybinds specified inside keybinds.cs load function
        UpButtonKeycode    = Keybinds.GetKeybind("MoveUp");
        DownButtonKeycode  = Keybinds.GetKeybind("MoveDown");
        LeftButtonKeycode  = Keybinds.GetKeybind("MoveLeft");
        RightButtonKeycode = Keybinds.GetKeybind("MoveRight");

        leftButtonDisplayText.text  = LeftButtonKeycode.ToString();
        rightButtonDisplayText.text = RightButtonKeycode.ToString();
        upButtonDisplayText.text    = UpButtonKeycode.ToString();
        downButtonDisplayText.text  = DownButtonKeycode.ToString();
    }
示例#2
0
 public void AssignKeybinds()
 {
     reloadKeybind     = keybindsScript.GetKeybind("Reload");
     firstSlotKeybind  = keybindsScript.GetKeybind("SlotOne");
     secondSlotKeybind = keybindsScript.GetKeybind("SlotTwo");
     thirdSlotKeybind  = keybindsScript.GetKeybind("SlotThree");
     fourthSlotKeybind = keybindsScript.GetKeybind("SlotFour");
     fifthSlotKeybind  = keybindsScript.GetKeybind("SlotFive");
 }