public Spell(int minLevel, TypeOfSpell type, float castTime) { nameId = 34; iconID = 0; Timer = 0f; Count = 0; MaxCount = 0; minDamage = 1f; minRange = 0f; maxRange = 2f; Type = type; MinLevel = Mathf.Clamp(minLevel, Personage.MIN_LEVEL, Personage.MAX_LEVEL); CastTime = castTime; Delay = 0f; delayTimer = 0f; TakeResourcesAmount = 0; EnableCastInAir = false; EnableCastInRun = false; CastOnlyInSpine = false; EnableCastInDeadTarget = false; DamageResources = TypeOfResources.Nothing; TakeResources = TypeOfResources.Nothing; School = SchoolOfDamage.Other; Mode = ModeOfCast.OnlyNotFriendly; }
public void ChangeSpellAlpha(TypeOfSpell spell, float alphaValue) { myPlayer.ChangeSpellAlpha(spell, alphaValue); }