Ejemplo n.º 1
0
 private void Start()
 {
     if (holdShootEvent == null)
     {
         holdShootEvent = new PlayerInputEvent();
     }
     if (releaseShootEvent == null)
     {
         releaseShootEvent = new PlayerInputEvent();
     }
 }
Ejemplo n.º 2
0
    private void Awake()
    {
        io = this;

        gameLogs = new List <string>();
        inputs   = new List <string>();

        inputField.onEndEdit.AddListener(inputFieldEndEditing);

        FocusInputField();

        playerInputEvent       = new PlayerInputEvent();
        playerActionInputEvent = new PlayerActionInputEvent();

        exclusiveInputEvent = new PlayerActionInputEvent();
        nextInputIsGrabbed  = false;
        nextInputEvent      = new PlayerInputEvent();

        readyToAct = true;
    }