Exemplo n.º 1
0
        public static void SaveSelectedConfig()
        {
            var go = Selection.activeGameObject;

            if (!go)
            {
                return;
            }

            var cfg = go.GetComponent <ConfigBase>();

            if (!cfg)
            {
                return;
            }

            ConfigSystem.TrySaveSingle(cfg);
        }