Пример #1
0
 void UpdateGrabKeyInput()
 {
     //Grab key pressed
     if (Input.GetButtonDown("Keyboard_Grab"))
     {
         ActionInput actionInput = new ActionInput(InputType.Grab);
         character.ActionInput(actionInput);
     }
 }
Пример #2
0
 // Update is called once per frame
 void Update()
 {
     character.ActionInput(actionInput);
 }