public override void OnActivate(int pinID)
        {
            if (pinID != 10 && pinID != 11)
            {
                return;
            }
            ConceptCardManager instance = ConceptCardManager.Instance;

            if (Object.op_Equality((Object)instance, (Object)null))
            {
                return;
            }
            int totalMixZeny = 0;

            if (pinID == 10)
            {
                ConceptCardManager.GalcTotalMixZeny(instance.SelectedMaterials, out totalMixZeny);
            }
            else
            {
                ConceptCardManager.GalcTotalMixZenyMaterialData(out totalMixZeny);
            }
            if (totalMixZeny > MonoSingleton <GameManager> .Instance.Player.Gold)
            {
                this.ActivateOutputLinks(1001);
            }
            else
            {
                this.ActivateOutputLinks(1000);
            }
        }
Exemplo n.º 2
0
        private void RefreshTextMixCost()
        {
            if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.TextMixCost, (UnityEngine.Object)null))
            {
                return;
            }
            int totalMixZeny = 0;

            ConceptCardManager.GalcTotalMixZeny(this.mSelectedMaterials, out totalMixZeny);
            this.TextMixCost.set_text(totalMixZeny.ToString());
        }
Exemplo n.º 3
0
        public void SetMixParam()
        {
            ConceptCardManager instance = ConceptCardManager.Instance;

            if (UnityEngine.Object.op_Equality((UnityEngine.Object)instance, (UnityEngine.Object)null))
            {
                return;
            }
            ConceptCardManager.GalcTotalMixZeny(instance.SelectedMaterials, out this.totalMixZeny);
            instance.SetupLevelupAnimation();
            this.mBaseCardId = (long)instance.SelectedConceptCardData.UniqueID;
            this.mMixCardIds = instance.SelectedMaterials.GetUniqueIDs().ToArray();
            instance.SelectedMaterials.Clear();
        }