public GameObject SpawnPowerPrefab(PowerUpTypes powerUpType, Vector3 position) { GameObject powerGameObject = _objectStorage.GetPowerElement(powerUpType); _objectSetter.SetGameObject(powerGameObject, position); return(powerGameObject); }
public GameObject SpawnPowerPrefab(PowerUpTypesEnum powerUpTypeEnum, Vector3 position) { GameObject powerGameObject = _objectStorage.GetPowerElement(powerUpTypeEnum); powerGameObject.name = powerGameObject.tag; powerGameObject.transform.position = position; return(powerGameObject); }