Пример #1
0
        public MinorHealSpell()
        {
            SpellProps = new SpellProperties
            {
                Damage           = 5,
                SpellDuration    = 3,
                CoolDownDuration = 5f,
                StaminaCost      = 10f,
                Type             = ESpellType.TYPE_SELF,
                CastTime         = 0.5f,
                CoolDownTimer    = 5f,
                Icon             = Resources.Load <Sprite>("MinorHeal"),
            };


            SpellObject = Resources.Load <SpellObject>("FX_Fireball");
        }
Пример #2
0
        public FireWallSpell()
        {
            SpellObject = Resources.Load <SpellObject>("FX_FireWall");
            SpellProps  = new SpellProperties
            {
                Damage           = 15,
                SpellDuration    = 20,
                CoolDownDuration = 15f,
                StaminaCost      = 20f,
                CastTime         = 0.5f,
                Type             = ESpellType.TYPE_AREA,
                CoolDownTimer    = 15f,
                Icon             = Resources.Load <Sprite>("FireWall"),
            };

            GameObjectPool.Initialize(SpellObject.gameObject);
        }
Пример #3
0
        public FireballSpell()
        {
            SpellProps = new SpellProperties
            {
                Damage           = 5,
                SpellDuration    = 3,
                CoolDownDuration = 5f,
                StaminaCost      = 10f,
                CastTime         = 0.5f,
                CoolDownTimer    = 5f,
                Type             = ESpellType.TYPE_RANGED,
                Icon             = Resources.Load <Sprite>("Fireball"),
            };


            SpellObject = Resources.Load <SpellObject>("FX_Fireball");
            GameObjectPool.Initialize(SpellObject.gameObject);
        }