public override void Apply(Vector3 position) { Collider2D[] collisions = Physics2D.OverlapCircleAll(position, hitRadius); foreach (Collider2D target in collisions) { WarriorMovement warrior = target.gameObject.GetComponent <WarriorMovement>(); if (warrior && warrior.IncreaseJump(jumpMultiplier)) { base.Effect(target); } } base.Apply(position); }
/// OVERRIDES public void Start() { animator = GetComponent <Animator>(); movement = GetComponent <WarriorMovement>(); behaviour = GetComponent <WarriorBehaviour>(); }