コード例 #1
0
 public void SetTree(SliderTree newTree)
 {
     tree = newTree;
     if (tree != null)
     {
         CreateSliderGroupTree(tree.sliderNodeList);
     }
     else
     {
         Debug.Log("<color=red>Tree loaded but still null!</color>");
     }
 }
コード例 #2
0
        void InitSliderGUIHandler()
        {
            tree = dbReader.GetDefaultSliderTree(); //works for now.

            if (tree == null)
            {
                tree = dbReader.GetSliderTree(Application.dataPath + "/../Characters/backup.fwc");
            }

            tree.UpdateCompleteSliderList();

            sliderGUIHandler.SetTree(tree);

            LoadTreeToChar();
        }
コード例 #3
0
 public void SaveSliderTree(SliderTree toSave, string path = "/../Characters/", string name = "default")
 {
     File.WriteAllText(Application.dataPath + path + name + ".fwc", StringSerializationAPI.Serialize(typeof(SliderTree), toSave));
 }