Beispiel #1
0
 public static void UCL_Invoke(this UCL.Core.UCL_FloatEvent ucl_event, float val)
 {
     if (ucl_event == null)
     {
         return;
     }
     try {
         ucl_event.Invoke(val);
     } catch (System.Exception e) {
         Debug.LogError("UCL_Event Invoke Exception:" + e);
     }
 }
Beispiel #2
0
 protected override void StartTweener()
 {
     TimerUpdate(Mathf.CeilToInt(m_Duration));
     CreateTweener().OnUpdate((y) => {
         int time = Mathf.CeilToInt(m_Duration - m_Tweener.Timer);
         if (m_TimeUpdateEvent != null)
         {
             m_TimeUpdateEvent.Invoke(1f - y);
         }
         while (m_Time > time)
         {
             TimerUpdate(m_Time - 1);
         }
     });
     m_Tweener.Start(m_TimeManager);
 }