示例#1
0
        public new void Restart(Room room)
        {
            Notes = false;
            Room  = room;

            Cards = new int[21] {
                0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
            };

            Hint = Hin.Emp;

            if (Room.Elementos == 0)
            {
                PositionX = -0.5f;
                PositionZ = -0.2f;
            }
            else if (Room.Elementos == 1)
            {
                PositionX = 0.5f;
                PositionZ = -0.2f;
            }
            else if (Room.Elementos == 2)
            {
                PositionX = -0.5f;
                PositionZ = 0.7f;
            }
            else
            {
                PositionX = 0.5f;
                PositionZ = 0.7f;
            }

            Room.Elementos++;
        }
示例#2
0
        public void ChangeRoom(Room room)
        {
            Room.Elementos--;

            Room = room;

            switch (room.name)
            {
            case "Kitchen":
                Hint = Hin.Kit;
                break;

            case "Office":
                Hint = Hin.Off;
                break;

            case "GreenHouse":
                Hint = Hin.Gre;
                break;

            case "LivingRoom":
                Hint = Hin.Liv;
                break;

            case "GamesRoom":
                Hint = Hin.Gam;
                break;

            case "DanceRoom":
                Hint = Hin.Dan;
                break;

            case "Lobby":
                Hint = Hin.Lob;
                break;

            case "DinningRoom":
                Hint = Hin.Din;
                break;

            case "Library":
                Hint = Hin.Lib;
                break;
            }

            if (Room.Elementos == 0)
            {
                PositionX = -0.5f;
                PositionZ = -0.2f;
            }
            else if (Room.Elementos == 1)
            {
                PositionX = 0.5f;
                PositionZ = -0.2f;
            }
            else if (Room.Elementos == 2)
            {
                PositionX = -0.5f;
                PositionZ = 0.7f;
            }
            else
            {
                PositionX = 0.5f;
                PositionZ = 0.7f;
            }

            Room.Elementos++;

            GameLogic.hint = true;
        }