예제 #1
0
    public void CycleDay()
    {
        Jour = !Jour;

        if (Jour)
        {
            /* SphereTest.SetActive(true);
             * Cubetest.GetComponent<Animation>().Stop();*/

            foreach (CycleItem CI in _cycleItems)
            {
                CI.Cycle();
            }
            if (!FaisceauOK)
            {
                faisceau.SetActive(true);
            }

            Lumiere.intensity = 7;
        }
        else
        {
            /* Cubetest.GetComponent<Animation>().Play(Cubetest.GetComponent<Animation>().clip.name);
             * SphereTest.SetActive(false);*/
            foreach (CycleItem CI in _cycleItems)
            {
                CI.Cycle();
            }
            faisceau.SetActive(false);

            Lumiere.intensity = 4;
        }
        Paupiere.color = new Color(Paupiere.color.r, Paupiere.color.g, Paupiere.color.b, 1);
        ChronoCycle    = TimerJourNuit;
    }