コード例 #1
0
ファイル: PlayerInput.cs プロジェクト: hdmmY/GameJam2018
 /// <summary>
 /// Start is called on the frame when a script is enabled just before
 /// any of the Update methods is called the first time.
 /// </summary>
 private void Start()
 {
     if (m_useKeyBoard)
     {
         _action = CharacterActions.CreateWithKeyboardBindings();
     }
     else
     {
         _action = CharacterActions.CreateWithControllerBindings();
     }
 }
コード例 #2
0
 public void CreateWithKeyboardBindings()
 {
     _action = CharacterActions.CreateWithKeyboardBindings();
 }