void OnTriggerStay(Collider collision)
    {
        if (m_playerState == PlayerState.InCutScene)
        {
            return;
        }

        if (m_playerState == PlayerState.FallingFromTower)
        {
            return;
        }

        m_physics.CallOnTriggerStay(collision, ref m_playerState);
    }
Ejemplo n.º 2
0
    void OnTriggerStay(Collider collision)
    {
        if (m_playerState == PlayerState.FallingFromTower)
        {
            return;
        }

        if (collision.gameObject.name == "VentCollision")
        {
            GameObject parent = collision.gameObject.transform.parent.gameObject;
            if (parent != null)
            {
                CSteamVent vent = parent.GetComponent <CSteamVent>();
                if (vent != null && vent.StreamOn)
                {
                    PushPlayerFromTower();
                    return;
                }
            }
        }

        m_physics.CallOnTriggerStay(collision, ref m_playerState);
    }