Exemple #1
0
        static public void Remove(Action callback)
        {
            EnterFrame.init();
            int i = callbacks.Count - 1;

            while (i >= 0)
            {
                if (callbacks[i] == callback)
                {
                    callbacks.RemoveAt(i);
                }
                i--;
            }
            if (callbacks.Count == 0)
            {
                tick.running.Value = false;
            }
        }
Exemple #2
0
 static public void AddAt(Action callback, int index)
 {
     EnterFrame.init();
     tick.running.Value = true;
     callbacks.Insert(index, callback);
 }
Exemple #3
0
 static public void Add(Action callback)
 {
     EnterFrame.init();
     tick.running.Value = true;
     callbacks.Add(callback);
 }