示例#1
0
    public virtual void GetPickedUp(Players player)
    {
        transform.parent = player.transform;

        transform.localPosition = new Vector3(0.3f, 0.3f);
        transform.localScale    = new Vector3(.4f, .4f);

        rigidbody2D.velocity    = new Vector2();
        rigidbody2D.isKinematic = true;
        collider2D.enabled      = false;
        player.AddWeapon(this);
    }