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

        instance.LoadOrCreateOptions();
        instance.options.ApplyGraphicSettings();
        instance.ApplyVolume();
    }