예제 #1
0
        public GameObject SpawnPowerPrefab(PowerUpTypes powerUpType, Vector3 position)
        {
            GameObject powerGameObject = _objectStorage.GetPowerElement(powerUpType);

            _objectSetter.SetGameObject(powerGameObject, position);

            return(powerGameObject);
        }
예제 #2
0
        public GameObject SpawnPowerPrefab(PowerUpTypesEnum powerUpTypeEnum, Vector3 position)
        {
            GameObject powerGameObject = _objectStorage.GetPowerElement(powerUpTypeEnum);

            powerGameObject.name = powerGameObject.tag;
            powerGameObject.transform.position = position;

            return(powerGameObject);
        }