Exemple #1
0
 void CheckSetupComplete()
 {
     if (Globals.Tasks <= 0)
     {
         MStateMachine.ChangeState(MStateMachine.eStates.Viewing);
         MPlanetHandler.GetUpAt(MassiveTools.VectorFromArray((Globals.UserAccount.CurrentPosition)));
         MMessageBus.GravityStateChanged(this, new BooleanEvent(true));
         CreateAvatar();
     }
 }
Exemple #2
0
 private void ModeButton_Click(object sender, EventArgs e)
 {
     if (Globals.Avatar.GetMoveMode() == MAvatar.eMoveMode.Flying)
     {
         MMessageBus.ChangeModeRequest(this, Massive.MAvatar.eMoveMode.Walking);
         MMessageBus.GravityStateChanged(this, new BooleanEvent(true));
     }
     else
     {
         MMessageBus.ChangeModeRequest(this, Massive.MAvatar.eMoveMode.Flying);
         MMessageBus.GravityStateChanged(this, new BooleanEvent(false));
     }
 }
Exemple #3
0
        public void Update()
        {
            if (MStateMachine.CurrentState == MStateMachine.eStates.Splash)
            {
                MMessageBus.GravityStateChanged(this, new BooleanEvent(false));
                CheckSetupStarted();
            }

            if (MStateMachine.CurrentState == MStateMachine.eStates.Setup)
            {
                CheckSetupComplete();
            }

            Globals._scene.Update();
            _lightHandler.Update();
            _cameraHandler.Update();
        }
Exemple #4
0
 private void GravityCheck_CheckedChanged(object sender, EventArgs e)
 {
     Settings.Gravity = GravityCheck.Checked;
     MMessageBus.GravityStateChanged(this, new BooleanEvent(Settings.Gravity));
 }