예제 #1
0
    void State_beginMoving_Update()
    {
        if (!elevatorZone.IsPointWithin(Common.GetStealthPlayer().transform.position))
        {
            smc.SetState(idle);
            return;
        }

        foreach (DoorMain door in doors)
        {
            if (!door.GetIsClosed())
            {
                return;
            }
        }

        smc.SetState(moving);
    }
예제 #2
0
    public void State_unactive_Update()
    {
        if (myZone.IsPointWithin(Common.GetStealthPlayer().transform.position))
        {
            smc.SetState(lightson);

            mySound.StopAllGlobalEvents();
            mySound.PlayIndependentEvent("static.vente", true, 0);
        }
    }