예제 #1
0
 private void Awake()
 {
     foreach (var entity in m_entities)
     {
         entity.BindActions(CharacterActions.CreateWithControllerBindings(), InputManager.ActiveDevice);
     }
 }
예제 #2
0
 /// <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();
     }
 }
예제 #3
0
 public void CreateWithControllerBindings()
 {
     _action = CharacterActions.CreateWithControllerBindings();
 }