public void StartPosion(OnStatusStartEventData e) { ColorShifter shifter = e.Target.GetComponentInChildren <ColorShifter>(); if (shifter != null) { shifter.ShiftToColor( new Color(1f, 1f, 1f, 1f), new Color(0f, 1f, 0f, 1f), 1f ); } StartCoroutine(RetickAfter(0f, new OnStatusTickEventData(e.Target, e.Source, e.Duration))); }
public void StartConfusion(OnStatusStartEventData e) { LastAddedMovement = Vector3.zero; LastAddedMovementMagnitude = 0f; ColorShifter shifter = e.Target.GetComponentInChildren <ColorShifter>(); if (shifter != null) { shifter.ShiftToColor( new Color(1f, 1f, 1f, 1f), new Color(1f, 1f, 0f, 1f), 1f ); } StartCoroutine(RetickAfter(0f, new OnStatusTickEventData(e.Target, e.Source, e.Duration))); }
public void Emit(OnStatusStartEventData e) { Handler.OnStatusStart.Invoke(e); }