示例#1
0
    void MouseClicked()
    {
        ResourceCard activeCard = HandControllerInstance.GetActiveCard();
        Reactor      reactor    = PlayFieldControllerInstance.GetHoveredReactor();

        if (activeCard != null && reactor != null && reactor.Activated && reactor.Accepts(activeCard.RepresentedResource))
        {
            reactor.Fuel(activeCard.RepresentedResource);
            HandControllerInstance.ConsumeActiveCard();
            PlayFieldControllerInstance.ResourceSelected(HandControllerInstance.GetActiveCard()?.RepresentedResource);
        }
    }