public void SetTree(SliderTree newTree) { tree = newTree; if (tree != null) { CreateSliderGroupTree(tree.sliderNodeList); } else { Debug.Log("<color=red>Tree loaded but still null!</color>"); } }
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(); }
public void SaveSliderTree(SliderTree toSave, string path = "/../Characters/", string name = "default") { File.WriteAllText(Application.dataPath + path + name + ".fwc", StringSerializationAPI.Serialize(typeof(SliderTree), toSave)); }