public void PlayOrPause() { if (Equals(sceneContainer.GetState(), ConstantsHelper.PlayState)) { sceneContainer.FreezeAll(); sceneContainer.SetState(ConstantsHelper.PauseState); textContainer.UpdateText(sceneContainer.GetState()); } else if (Equals(sceneContainer.GetState(), ConstantsHelper.PauseState) || Equals(sceneContainer.GetState(), ConstantsHelper.StopState)) { sceneContainer.UnfreezeAll(); if (!Equals(sceneContainer.GetState(), ConstantsHelper.PauseState)) { sceneContainer.MoveForce(); } sceneContainer.SetState(ConstantsHelper.PlayState); textContainer.UpdateText(sceneContainer.GetState()); } }