void SpawnPlayer() { spawn = GameObject.FindGameObjectWithTag("Respawn").transform; playerObject = GameObject.Instantiate(playerPrefab, spawn.position, spawn.rotation); player = playerObject.GetComponent <Craft>(); player.PutOnHoverHeight(); }
void SpawnPlayer() { spawn = GameObject.FindGameObjectWithTag("Respawn").transform; playerObject = GameObject.Instantiate(playerPrefab, spawn.position, spawn.rotation); player = playerObject.GetComponent <Craft>(); player.PutOnHoverHeight(); }