/// <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(); } }
public void CreateWithKeyboardBindings() { _action = CharacterActions.CreateWithKeyboardBindings(); }