Beispiel #1
0
        public GameObject SpawnPrefab(GameElementTypesEnum elementTypeEnum, Vector3 position)
        {
            GameObject newGameObject = _objectStorage.GetGameElement(elementTypeEnum);

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

            return(newGameObject);
        }