void FixedUpdate()
 {
     if (Input.GetButton("TimeControl"))
     {
         if (objectsOnStack.Count > 0)
         {
             otherScript.LoadTRObject(objectsOnStack.Pop());
         }
     }
     else
     {
         otherScript.SaveTRObject();
     }
 }
Beispiel #2
0
 void FixedUpdate()
 {
     if
     (Input.GetButton("TimeControl"))
     {
         if (objectsInCircularBuffer.Count > 0)
         {
             otherScript.LoadTRObject(objectsInCircularBuffer.Pop());
         }
     }
     else
     {
         otherScript.SaveTRObject();      //um frameunabhaengig zu bleiben
     }
 }