Ejemplo n.º 1
0
    public void SetAlert()
    {
        anim.SetBool("Alerted", true);

        SecureRoom newRoom = (SecureRoom)parentRoom;

        if (!newRoom.hasAlerted)
        {
            newRoom.RoomAlerted();
            newRoom.NotifyEnemiesOfPlayer();
            newRoom.AlertCameras();
        }
    }
Ejemplo n.º 2
0
    public void SawPlayer()
    {
        ActionSawPlayer();

        SecureRoom newRoom = (SecureRoom)parentRoom;

        if (!newRoom.hasAlerted)
        {
            newRoom.RoomAlerted();
            newRoom.NotifyEnemiesOfPlayer();
        }

        newRoom.AlertCameras();
    }