ProjectStorms.AirshipSuicideBehaviour.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
        void Update()
        {
            // Set cam stuff
            airshipMainCam.camFollowPlayer = true;
            airshipMainCam.SuicideCam();

            // Turn on particles
            fireShipParticles.SetActive(true);

            m_myRigid.useGravity = false;

            // Time until the player state resets
            timerUntilReset -= Time.deltaTime;

            if (timerUntilReset < 0.0f || SelectButtonReleased())
            {
                // Try sending the airship back into control mode
                //m_stateManager.SetPlayerState(EPlayerState.Roulette);
                m_stateManager.SetPlayerState(EPlayerState.Control);
            }

            //Make controller vibrate - update every second
            InputManager.SetControllerVibrate(gameObject.tag, boostRumbleStr, boostRumbleStr, boostRumbleDurr, true);
        }