public void RespawnPlayInRandomCell() { gamePlayEditor.GetComponent <HexMapEditor>(); while (!gamePlayEditor.CreateUnit(RandomCoordinate())) { Debug.Log("Random player set up!"); hexMapCamera = hexMapCamera.GetComponent <HexMapCamera>(); // hexMapCamera.MovingCameraToUnit(); } }