예제 #1
0
        public GameObject SpawnPrefab(Vector3 position)
        {
            GameObject newGameObject = _objectStorage.GetRandomGameElement();

            _objectSetter.SetGameObject(newGameObject, position);

            return(newGameObject);
        }
예제 #2
0
        public GameObject SpawnRandomPrefab(Vector3 position)
        {
            GameObject newGameObject = _objectStorage.GetRandomGameElement();

            newGameObject.name = newGameObject.tag;
            newGameObject.transform.position = position;

            return(newGameObject);
        }