コード例 #1
0
        public void ManagedOnDisable()
        {
            var cody = new CfgEncoder();

            var at = MeshToolBase.AllTools;

            if (!at.IsNullOrEmpty())
            {
                foreach (var t in at)
                {
                    cody.Add(t.StdTag, t.Encode());
                }

                meshToolsStd = cody.ToString();
            }

            stdData = Encode().CfgData;

            systemLanguage = LazyLocalization._systemLanguage;

#if UNITY_EDITOR
            if (!defaultMaterial)
            {
                defaultMaterial = AssetDatabase.GetBuiltinExtraResource <Material>("Default-Material.mat");
            }
#endif
        }
コード例 #2
0
        public void ManagedOnDisable()
        {
            var cody = new CfgEncoder();

            var at = MeshToolBase.AllTools;

            if (!at.IsNullOrEmpty())
            {
                foreach (var t in at)
                {
                    cody.Add(t.StdTag, t.Encode());
                }

                meshToolsStd = cody.ToString();
            }

            stdData = Encode().ToString();

            systemLanguage = LazyLocalization._systemLanguage;
        }