Exemplo n.º 1
0
 public void AddTimer(TimeEvent evet, float time, Action CallBack)
 {
     if (!this.TimerList.Contains(evet))
     {
         evet.OnCompleteEvent = CallBack;
         evet.SetData(evet.gameObject, time);
         this.TimerList.Add(evet);
     }
     else
     {
         DestroyImmediate(evet);
     }
 }