Set Owner

public void SetOwner(byte playerId)

This method allows to change player, which owns this unit. Unit will also change color and team to match this player.