/// <summary> /// Resumes the normal simulation and exits the replay mode, showing all UI elements again /// </summary> public override void Resume() { lastFrameCount = physicsWorld.frameCount; Tracking = true; CollisionTracker.Reset(); }
/// <summary> /// Ends the restting process of the active robot and resets the replay tracking objects /// </summary> public void EndRobotReset() { ActiveRobot.EndReset(); foreach (Tracker t in UnityEngine.Object.FindObjectsOfType <Tracker>()) { t.Clear(); CollisionTracker.Reset(); } }
/// <summary> /// Resumes the normal simulation and exits the replay mode, showing all UI elements again /// </summary> public override void Resume() { lastFrameCount = physicsWorld.frameCount; Tracking = true; foreach (Canvas c in Resources.FindObjectsOfTypeAll <Canvas>().Where(x => x.transform.root.name.Equals("Main Camera"))) { c.enabled = true; } CollisionTracker.Reset(); }