CodeScrollItem.DroppedOn C# (CSharp) Method

DroppedOn() public method

public DroppedOn ( GameObject target ) : void
target GameObject
return void
    public override void DroppedOn(GameObject target)
    {
        if(target == null)
        {
            SetHidden(false);
            return;
        }

        if(isEmpty())
        {
            absorbSpell(target);

        } else {
            castSpell(target);
        }
    }