Ejemplo n.º 1
0
    public static void ApplyOptionsOnStartUp()
    {
        OptionsPanel instance = FindObjectOfType <Canvas>()
                                .GetComponentInChildren <OptionsPanel>(
            includeInactive: true);

        instance.LoadOrCreateOptions();
        Options.instance.ApplyGraphicSettings();
        instance.ApplyAudioOptions();
    }