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