Example #1
0
 private void HandleActionsInTime(BehaviorHandler _handler, TriggerEventsAndStates _type)
 {
     if (multipleActionsInTime)
     {
         requests.Add(new Request(Time.time + delayTime, _handler, _type));
     }
     else
     {
         for (int i = 0; i < requests.Count; i++)
         {
             if (requests[i].GetRequestType() == (_type))
             {
                 return;
             }
         }
         requests.Add(new Request(Time.time + delayTime, _handler, _type));
     }
 }
Example #2
0
 public Request(float tm, BehaviorHandler h, TriggerEventsAndStates tp)
 {
     time        = tm;
     handler     = h;
     requestType = tp;
 }