public void Ask(GameButton.InteractionDeleguate confirmationAction) { confirmButton.Interaction = confirmationAction; confirmButton.Interaction += CloseConfirmationPanel; cancelButton.Interaction = CloseConfirmationPanel; }
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); }
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; } }
public void SetUpOnlyThrow(GameButton.InteractionDeleguate throwInteraction) { throwButton.Interaction = throwInteraction; }
public void SetUp(GameButton.InteractionDeleguate playInteraction, GameButton.InteractionDeleguate closeInteraction) { playButton.Interaction = playInteraction; closeButton.Interaction = closeInteraction; }
public void SetUpForArena(GameButton.InteractionDeleguate throwInteraction) { informationsInterface.SetUpOnlyThrow(throwInteraction); }