private void AddEvent(LengthEvent lengthEvent)
 {
     LengthEvent[] newEvents = new LengthEvent[lengthEvents.Length + 1];
     lengthEvents.CopyTo(newEvents, 0);
     newEvents[newEvents.Length - 1] = lengthEvent;
     lengthEvents = newEvents;
 }
示例#2
0
 private void AddEvent(LengthEvent lengthEvent)
 {
     LengthEvent[] array = new LengthEvent[lengthEvents.Length + 1];
     lengthEvents.CopyTo(array, 0);
     array[array.Length - 1] = lengthEvent;
     lengthEvents            = array;
 }
示例#3
0
        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);
        }
示例#4
0
        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);
        }
示例#5
0
        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);
        }
示例#6
0
        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);
        }