// Update is called once per frame void Update() { if (CrossPlatformInputManager.GetButton("Fire1")) { recording = false; replaySystem.PlayBack(); } else { recording = true; replaySystem.Record(); } //if(recording){replaySystem.Record();} }