private void Awake() { foreach (var entity in m_entities) { entity.BindActions(CharacterActions.CreateWithControllerBindings(), InputManager.ActiveDevice); } }
/// <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 CreateWithControllerBindings() { _action = CharacterActions.CreateWithControllerBindings(); }