Exemplo n.º 1
0
    void Awake()
    {
        Instance=this;
        ResetGUI();

        for(int i=0; i<Sounds.Length; i++)
        {
        #if UNITY_EDITOR || UNITY_STANDALONE
            Sounds[i].clip = ClipsPC[i];
        #else
            Screen.sleepTimeout = SleepTimeout.NeverSleep;
            Sounds[i].clip = ClipsMobile[i];
        #endif
        }
    }