Ejemplo n.º 1
0
    void Start()
    {
        mainLight    = GetComponent <Light>();
        moonrenderer = moon.GetComponent <MeshRenderer>();
        fullSizeMoon = moonrenderer.transform.localScale.y;

        lightningController = lightning.GetComponent <DigitalRuby.ThunderAndLightning.ThunderAndLightningScript>();

        stars.Clear();
        var em = stars.emission;

        em.enabled = false;

        rain.RainMistThreshold = 1f;
    }
 public LightningBoltHandler(ThunderAndLightningScript script)
 {
     this.script = script;
     CalculateNextLightningTime();
 }
 public LightningBoltHandler(ThunderAndLightningScript script)
 {
     this.script = script;
     CalculateNextLightningTime();
 }