예제 #1
0
        void CommandBuildToggle()
        {
            if (IsUserInBuildMode)
            {
                freeCam.DisableFreecam();
                ui.Close();
                builder.Cleanup();

                input.EnableKey(0, 37);
                input.EnableKey(0, 261);
                input.EnableKey(0, 262);

                IsUserInBuildMode = false;
            }
            else
            {
                freeCam.EnableFreecam();

                input.DisableKey(0, 37);
                input.DisableKey(0, 261);
                input.DisableKey(0, 262);

                IsUserInBuildMode = true;
            }
        }
예제 #2
0
 public override void OnStateExit()
 {
     _freecam.DisableFreecam();
 }