void DoRewind() { //Debug.Log("Doing Rewind"); if (!isRewindPressed || storedPositions.GetSize() <= 0) { StopRewind(); return; } playerTransform.position = storedPositions.Pop(); }