示例#1
0
    private void DoPickUp(Collider other)
    {
        Thrower thrower = other.GetComponent <Thrower>();

        if (thrower)
        {
            if (this.onPicked != null)
            {
                this.onPicked();
            }

            thrower.PickItem(this);
        }
    }