Beispiel #1
0
 //------------------------------------------------------------------------/
 // Messages
 //------------------------------------------------------------------------/
 private void Start()
 {
     visibilityTimer = new Countdown(duration);
     //Overlay.Watch(() => visibilityTimer.current, "Visibility Timer");
     //Overlay.Watch(() => isVisible, "Visible");
 }
 //------------------------------------------------------------------------/
 // Messages
 //------------------------------------------------------------------------/
 protected override void OnAwake()
 {
     timer = new Countdown(duration);
     timer.SetCallback(OnTimerFinished);
     timer.resetOnFinished = resetOnDisabled;
 }