Example #1
0
    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);
    }
Example #2
0
    /// OVERRIDES

    public void Start()
    {
        animator  = GetComponent <Animator>();
        movement  = GetComponent <WarriorMovement>();
        behaviour = GetComponent <WarriorBehaviour>();
    }