public void Raw(Vector3 rotation) { if ((Manager_Input.CurrentInputActionMap & (ActionMap)) == NONE) { return; } FCgInput input = Manager_Input.GetPreviousPreviousInputAction(Action); if (input == null && Info.Euler != rotation) { FirstMoved(rotation); } else if (Info.Euler != rotation) { Moved(rotation); } else if ((input == null && Info.Euler == rotation) || (input != null && input.Rotation != Info.Euler && Info.Euler == rotation)) { FirstStationary(rotation); } else if (Info.Euler == rotation) { Stationary(rotation); } }
public void Raw(float val) { if ((Manager_Input.CurrentInputActionMap & (ActionMap)) == NONE) { return; } FCgInput input = Manager_Input.GetPreviousPreviousInputAction(Action); if (input == null && Info.Value != val) { FirstMoved(val); } else if (Info.Value != val) { Moved(val); } else if ((input == null && Info.Value == val) || (input != null && input.Value != Info.Value && Info.Value == val)) { FirstStationary(val); } else if (Info.Value == val) { Stationary(val); } }
public void Stationary(float val) { ECgInputEvent e = ECgInputEvent.Stationary; Info.Set(e, val); Manager_Input.AddInput(Action, e, val); Broadcast(e, Manager_Input.InputOwner, val); }
public void Moved(float val) { ECgInputEvent e = ECgInputEvent.Moved; Info.Set(e, val); Manager_Input.AddInput(Action, e, val); Broadcast(e, Manager_Input.InputOwner, val); }
public void Stationary(Vector3 rotation) { ECgInputEvent e = ECgInputEvent.Stationary; Info.Set(e, rotation); Manager_Input.AddInput(Action, e, 0.0f, Vector3.zero, rotation); Broadcast(e, Manager_Input.InputOwner, rotation); }
public void FirstStationary(Vector3 location) { ECgInputEvent e = ECgInputEvent.FirstStationary; Info.Set(e, location); Manager_Input.AddInput(Action, e, 0.0f, location); Broadcast(e, Manager_Input.InputOwner, location); }
public void Moved(Vector3 location) { ECgInputEvent e = ECgInputEvent.Moved; Info.Set(e, location); Manager_Input.AddInput(Action, e, 0.0f, location); Broadcast(e, Manager_Input.InputOwner, location); }
private void Awake() { if (Manager_Input.Instance != null) { Destroy(this.gameObject); return; } Manager_Input.Instance = this; }
public void Pressed() { ECgInputEvent e = ECgInputEvent.Pressed; if (Info.Last_Event == ECgInputEvent.FirstPressed) { Info.Event = e; } Manager_Input.AddInput(Action, e); Broadcast(e, Manager_Input.InputOwner); }
private void Awake() { if (Manager_Input.Instance != null) { Destroy(this.gameObject); return; } Manager_Input.Instance = this; DontDestroyOnLoad(this.gameObject); m_NbBOpened = 0; }
public void FirstReleased() { if ((Manager_Input.CurrentInputActionMap & ActionMap) == NONE) { return; } ECgInputEvent e = ECgInputEvent.FirstReleased; Info.Event = e; Manager_Input.AddInput(Action, e); Broadcast(e, Manager_Input.InputOwner); }