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