public void ShowUpgradeLevelRestrictionIndicator(ItemUpgradeUpdatedEvent e, UpgradableItemNode parentItem, [JoinByParentGroup, Combine] MarketItemWithUpgradeLevelRestrictionNode marketItem)
        {
            CheckMarketItemRestrictionsEvent eventInstance = new CheckMarketItemRestrictionsEvent();

            base.ScheduleEvent(eventInstance, marketItem);
            if (!eventInstance.RestrictedByUpgradeLevel && (!eventInstance.RestrictedByRank && marketItem.upgradeLevelRestrictionBadgeGUI.gameObject.activeSelf))
            {
                marketItem.upgradeLevelRestrictionBadgeGUI.SendMessageUpwards("OnItemEnabled", SendMessageOptions.DontRequireReceiver);
                marketItem.upgradeLevelRestrictionBadgeGUI.SendMessageUpwards("Unlock", SendMessageOptions.DontRequireReceiver);
                marketItem.upgradeLevelRestrictionBadgeGUI.gameObject.SetActive(false);
                marketItem.upgradeLevelRestrictionBadgeGUI.SendMessageUpwards("MoveToItem", marketItem.upgradeLevelRestrictionBadgeGUI.gameObject, SendMessageOptions.DontRequireReceiver);
            }
        }
예제 #2
0
 public void HoldTheDoor(ItemUpgradeUpdatedEvent e, Node any)
 {
 }