Exemple #1
0
 public static void LateUpdate()
 {
     if (stack.Count < 1)
     {
         return;
     }
     if (Input.GetKeyUp("escape"))
     {
         function f = stack.Pop();
         if (f == null)
         {
             return;
         }
         f();
     }
 }
Exemple #2
0
 public static void Add(function function)
 {
     stack.Push(function);
 }