private FireMage getInstance() { if (instance == null) { instance = this; HeroPool.GetInstance().SetHero(this, CommonConfig.FireMage); LevelManager = new MageLeveling(this, FireMageConfig.Level); } return(instance); }
new void Start() { LevelManager = new MageLeveling(this, 1); //TODO: init needed attrs ATK = new CharacterAttribute(); range.BaseValue = 30f; InvokeRepeating("UpdateTarget", 0f, 0.5f); Debug.Log("In IceMage"); }
void Start() { HeroPool.GetInstance().SetHero(this, CommonConfig.FireMage); LevelManager = new MageLeveling(this, FireMageConfig.Level); HeroAnimator = GetComponent <Animator>(); Logger.Log(HeroAnimator); LoadAttr(); particleEffect.Stop(); fireEffect.Stop(); LoadSkill(); InvokeRepeating("UpdateTarget", 0f, 0.5f); }