コード例 #1
0
    public void setManipulatableOwner(PlayerScript p)
    {
        if (p.getID() == ownerID)
        {
            return;
        }
        if(owner != null)
            owner.setManipulatableAsNotOwned(this);
        owner = p;
        ownerID = p.getID();
        owner.setManipulatableAsOwned(this);

        this.renderer.material.color = owner.getColor();
    }