Exemple #1
0
    protected override void OnDisable()
    {
        base.OnDisable();
        this.m_Animator.SetBool(this.m_BSwim, false);
        this.m_Animator.SetFloat(this.m_FSwimSpeedLong, 0f);
        this.m_Animator.SetFloat(this.m_FSwimSpeedLeft, 0f);
        this.m_Animator.SetFloat(this.m_FSwimSpeedRight, 0f);
        this.m_Player.m_UseGravity = true;
        GreenHellGame instance = GreenHellGame.Instance;

        if (instance != null)
        {
            instance.SetSnapshot(AudioMixerSnapshotGame.Default, 0.5f);
        }
        this.m_State = SwimState.None;
        this.m_HighFallingSpeedLastTime = false;
        this.m_CheckHighSpeed           = false;
        this.m_WantedSpeed.Reset();
        this.m_LastDisableTime = Time.time;
    }