protected override void Start() { base.Start(); isOnCoolDown = cdManager.GetFairyCooldown(); circleCollider = GetComponent <CircleCollider2D>(); novaAnimator = GetComponentsInChildren <Animator>()[1]; circleCollider.enabled = false; Subject.AddCDObserver(this); this.baseDamage = Constants.FAIRY_BASE_DAMAGE; //Damage of Fairy AOE Attack }
// Use this for initializing dependencies protected override void Start() { base.Start(); isOnCoolDown = cdManager.GetRangerCooldowns(); animator = GetComponent <Animator>(); particles = GetComponentInChildren <ParticleSystem>(); particleSettings = particles.main; particles.Stop(); Subject.AddObserver(this); Subject.AddCDObserver(this); }
// use this for initializing dependencies protected override void Start() { base.Start(); isOnCoolDown = cdManager.GetWarriorCooldowns(); attackColliders = GetComponentsInChildren <BoxCollider2D>(); sound = GetComponent <AudioSource>(); particles = GetComponentInChildren <ParticleSystem>(); particleSettings = particles.main; particles.Stop(); DisableAttackColliders(); Subject.AddObserver(this); Subject.AddCDObserver(this); }