Esempio n. 1
0
    public void ExecutePreBehaviour()
    {
        behaviour.ExecuteBehaviour();

        if (type.IsStairUp())
        {
            GameManager.instance.ChangeLevel(1);
        }
        else if (type.IsStairDown())
        {
            GameManager.instance.ChangeLevel(-1);
        }
        else if (HasFire())
        {
            fireScript.StepOnFire();
        }
    }