public GameObject SpawnPrefab(Vector3 position) { GameObject newGameObject = _objectStorage.GetRandomGameElement(); _objectSetter.SetGameObject(newGameObject, position); return(newGameObject); }
public GameObject SpawnRandomPrefab(Vector3 position) { GameObject newGameObject = _objectStorage.GetRandomGameElement(); newGameObject.name = newGameObject.tag; newGameObject.transform.position = position; return(newGameObject); }