示例#1
0
    public void Ask(GameButton.InteractionDeleguate confirmationAction)
    {
        confirmButton.Interaction  = confirmationAction;
        confirmButton.Interaction += CloseConfirmationPanel;

        cancelButton.Interaction = CloseConfirmationPanel;
    }
示例#2
0
 public void SetUp(/*GameButton.InteractionDeleguate openPlayerInteraction,*/ GameButton.InteractionDeleguate openSellerInteraction, GameButton.InteractionDeleguate openSellerRebuyInteraction, GameButton.InteractionDeleguate closeInteraction, GameButton.InteractionDeleguate repairInteraction, GameButton.InteractionDeleguate openPlayerOnlyInteraction)
 {
     //playerInventoryButton.Interaction = openPlayerInteraction;
     sellerInventoryButton.Interaction      = openSellerInteraction;
     sellerRebuyInventoryButton.Interaction = openSellerRebuyInteraction;
     closeButton.Interaction         = closeInteraction;
     repairButton.Interaction        = repairInteraction;
     openInventoryButton.Interaction = openPlayerOnlyInteraction;
     openInventoryButton.gameObject.SetActive(true);
 }
示例#3
0
    public void SetUp(GameButton.InteractionDeleguate equipInteraction, GameButton.InteractionDeleguate upgradeInteraction, GameButton.InteractionDeleguate buyInteraction, GameButton.InteractionDeleguate sellInteraction, GameButton.InteractionDeleguate closeInteraction)
    {
        equipButton.Interaction   = equipInteraction;
        upgradeButton.Interaction = upgradeInteraction;
        sellButton.Interaction    = sellInteraction;
        buyButton.Interaction     = buyInteraction;

        /*equipWithSellButton.Interaction = equipInteraction;
         * equipWithUpgradeAndSellButton.Interaction = equipInteraction;
         *
         * sellWithEquipButton.Interaction = sellInteraction;
         * sellWithEquipAndUpgradeButton.Interaction = sellInteraction;
         *
         * upgradeButton.Interaction = upgradeInteraction;
         * upgradeWithEquipAndSellButton.Interaction = upgradeInteraction;
         *
         * buyButton.Interaction = buyInteraction;*/

        if (closeButton != null)
        {
            closeButton.Interaction = closeInteraction;
        }
    }
示例#4
0
 public void SetUpOnlyThrow(GameButton.InteractionDeleguate throwInteraction)
 {
     throwButton.Interaction = throwInteraction;
 }
示例#5
0
 public void SetUp(GameButton.InteractionDeleguate playInteraction, GameButton.InteractionDeleguate closeInteraction)
 {
     playButton.Interaction  = playInteraction;
     closeButton.Interaction = closeInteraction;
 }
示例#6
0
 public void SetUpForArena(GameButton.InteractionDeleguate throwInteraction)
 {
     informationsInterface.SetUpOnlyThrow(throwInteraction);
 }