Пример #1
0
        public void SaveMorphs()
        {
            if (!busy)
            {
                //tree = sliderGUIHandler.GetTree();

                if (tree != null)
                {
                    //PublicToastHandler.GiveMessage("Updated Sliders: " + tree.GetCompleteSliderList().Count);

                    if (tree.sliderNodeList.Count > 0)
                    {
                        dbReader.SaveSliderTree(tree);
                    }

                    Debug.Log("<color=blue> Successfully saved character to file.</color>");
                    PublicToastHandler.GiveMessage("Saved Morphs.");
                }

                else
                {
                    Debug.Log("<color=red>Warning: Cancelled attrempt to over-write default character with 'null'</color>");
                }
            }
            else
            {
                Debug.Log("<color=yellow>Save morphs cancelled, since sliders are still busy loading.</color>");
            }
        }
Пример #2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         GameObject.Destroy(this);
     }
 }