Beispiel #1
0
        public static DummyTimer Create(string name = "DummyTimer")
        {
            var timer = InstantiateUtil.AddToPath <DummyTimer>("system.timers");

            timer.name = name;
            return(timer);
        }
Beispiel #2
0
        // TODO: requre to optimize for using a one timer for all
        public static Signal WaitFor(float duration, string name = "DummyTimer")
        {
            var timer = InstantiateUtil.AddToPath <DummyTimer>("system.timers");

            timer.name = name;
            timer.Run(duration);
            return(timer.onTime);
        }