public void RemoveAllListeners() { Walk_Horizontal.RemoveAllListeners(); Walk_Vertical.RemoveAllListeners(); Look_Y.RemoveAllListeners(); Look_X.RemoveAllListeners(); Interact.RemoveAllListeners(); Focus.RemoveAllListeners(); }
private void HandleInput() { Walk_Vertical.Invoke(Input.GetAxisRaw("Vertical")); Walk_Horizontal.Invoke(Input.GetAxisRaw("Horizontal")); Look_X.Invoke(Input.GetAxisRaw("Look X")); Look_Y.Invoke(Input.GetAxisRaw("Look Y")); ZoomIn.Invoke(Input.GetAxisRaw("ZoomIn")); //Focus.Invoke(Input.GetAxisRaw("Focus")); //Crouch.Invoke(GetKeyDown("Crouch")); //Interact.Invoke(GetKeyDown("Interact")); }
public void RemoveAllListenersLookY() { Look_Y.RemoveAllListeners(); }
public void SetListenerLookY(UnityAction <float> call) { Look_Y.AddListener(call); }