예제 #1
0
            public override Item CreateItemFromData()
            {
                AbilityGem mItem = base.CreateItemFromData() as AbilityGem;

                mItem.baseEffectValue = baseEffectValue;
                return(mItem);
            }
예제 #2
0
        public void SetNewAbility(AbilityGem gem, AbilityCooldownDisplay slot)
        {
            if (gem == null)
            {
                slot.SetAbility(null);
                return;
            }
            Ability abilityInstance = InstanciateAbility(gem.ability);

            slot.SetAbility(abilityInstance);

            abilityInstance.baseEffectValue = gem.baseEffectValue;
            abilityInstance.range           = gem.ability.range;
            if (animator == null)
            {
                animator = GetComponentInChildren <Animator>();
            }
            AnimationHandler.OverrideAnimations(animator, gem.ability.animationClip, "Cast" + slot.index);
        }
예제 #3
0
            public ASaveData(Item item) : base(item)
            {
                AbilityGem abilityGem = item as AbilityGem;

                baseEffectValue = abilityGem.baseEffectValue;
            }