Beispiel #1
0
 public void ButtonClick(PlayerActionButton button)
 {
     if (inputActive)
     {
         playerActor.ReceiveAction(button.actionToPerform);
     }
 }
Beispiel #2
0
        public void DisconnectButton(string buttonName)
        {
            PlayerActionButton button = GetButton(buttonName);

            if (button != null)
            {
                button.actionToPerform = null;
            }
        }
Beispiel #3
0
        public void ConnectButton(string buttonName, ActorAction action)
        {
            PlayerActionButton button = GetButton(buttonName);

            if (button != null)
            {
                button.actionToPerform = action;
            }
        }