Beispiel #1
0
    public void Start()
    {
        roomInfo = GetComponent <RoomInfo>();

        gameObject.transform.position = roomInfo.Slot.transform.position;

        roomSlotsRenderer = Helpers.LocalPlayer.GetComponent <RoomSlotsRenderer>();
        if (roomSlotsRenderer != null)
        {
            roomSlotsRenderer.OnRoomSpawned(roomInfo.Slot, gameObject);
        }

        CardDB.Instance.Cards.TryGetValue(roomInfo.CardId, out cardDesc);
        if (cardDesc == null)
        {
            Debug.LogError("Card not found: " + roomInfo.CardId);
            return;
        }

        UpdateColor();
    }
Beispiel #2
0
    public void Init()
    {
        RoomSlotsRenderer.InitRoomSlots(roomSlots, roomSlotsByWing);

        CreateHearts();
    }