Beispiel #1
0
    void SpawnSpotlight(Vector3 spotlightPosition, float duration)
    {
        Spotlight newSpotlight = Instantiate(spotlight, spotlightPosition, Quaternion.Euler(Vector3.right * 90)) as Spotlight;

        newSpotlight.Create(duration);
    }