void SpawnSpotlight(Vector3 spotlightPosition, float duration) { Spotlight newSpotlight = Instantiate(spotlight, spotlightPosition, Quaternion.Euler(Vector3.right * 90)) as Spotlight; newSpotlight.Create(duration); }
void SpawnSpotlight(Vector3 spotlightPosition, float duration) { Spotlight newSpotlight = Instantiate(spotlight, spotlightPosition, Quaternion.Euler(Vector3.right * 90)) as Spotlight; newSpotlight.Create(duration); }