private void Start() { playerMovement = GetComponent <PlayerMovement>(); playerMesh = GetComponentInChildren <MeshRenderer>(); playerCollider = GetComponent <Collider>(); blockHolder = GetComponent <BlockHolder>(); ship = GetComponent <ShipOwner>().OwnShip; shipMovement = ship.gameObject.GetComponentInChildren <ShipMovement>(); SetShipInputs(); }
private void Awake() { rb = GetComponent <Rigidbody>(); shipMovement = GetComponent <ShipMovement>(); }