public void SetShip(GameObject gameObject) { shipObject = gameObject; shipScript = shipObject.GetComponent <ShipScript>(); shipScript.SetGuid(guid); }