private void AddEvent(LengthEvent lengthEvent) { LengthEvent[] newEvents = new LengthEvent[lengthEvents.Length + 1]; lengthEvents.CopyTo(newEvents, 0); newEvents[newEvents.Length - 1] = lengthEvent; lengthEvents = newEvents; }
private void AddEvent(LengthEvent lengthEvent) { LengthEvent[] array = new LengthEvent[lengthEvents.Length + 1]; lengthEvents.CopyTo(array, 0); array[array.Length - 1] = lengthEvent; lengthEvents = array; }
public void AddEvent(LengthEvent.Type t, UnityAction <Transform> call, Transform value, float targetLength = 0f, LengthEvent.Type type = LengthEvent.Type.Both) { LengthEvent newEvent = new LengthEvent(t, new SplineAction(call, value)); newEvent.targetLength = targetLength; newEvent.type = type; AddEvent(newEvent); }
public void AddTrigger(LengthEvent.Type t, UnityAction <string> call, string value, float targetLength = 0f, LengthEvent.Type type = LengthEvent.Type.Both) { LengthEvent newEvent = new LengthEvent(t, new SplineAction(call, value)); newEvent.targetLength = targetLength; newEvent.type = type; AddEvent(newEvent); }
public void AddEvent(LengthEvent.Type t, UnityAction call, float targetLength = 0f, LengthEvent.Type type = LengthEvent.Type.Both) { LengthEvent newEvent = new LengthEvent(t, new SplineAction(call)); newEvent.targetLength = targetLength; newEvent.type = type; AddEvent(newEvent); }
public void AddEvent(LengthEvent.Type t, UnityAction <GameObject> call, GameObject value, float targetLength = 0f, LengthEvent.Type type = LengthEvent.Type.Both) { LengthEvent lengthEvent = new LengthEvent(t, new SplineAction(call, value)); lengthEvent.targetLength = targetLength; lengthEvent.type = type; AddEvent(lengthEvent); }