示例#1
0
 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
 }
示例#2
0
 // 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);
 }
示例#3
0
 // 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);
 }