private bool Load() { int index = IniWorker.ReadIntValue("CurrentIndex", -1); if (index == -1) { return(false); } string indicesStr = IniWorker.ReadStringValue("Indices", null); if (indicesStr == null) { return(false); } string[] indices = indicesStr.Split(new string[] { " " }, System.StringSplitOptions.RemoveEmptyEntries); _indices.Clear(); foreach (string i in indices) { _indices.Add(int.Parse(i)); } CurrentIndex = index; return(true); }
private void Start() { LeftCount = IniWorker.ReadIntValue("LeftCount", 0); RightCount = IniWorker.ReadIntValue("RightCount", 0); }