public void OverwriteTestSkillData(TestSkillDataFormat testSkillData) { int _targetIndex = testSkillData.SlotID; if (_targetIndex >= 0) { testPanelData.TestSkillInformationFormatList [_targetIndex] = testSkillData.CloneEx(); WriteToPlayerPrefs(); this.TestSkillDataListChangedEvent.Invoke(testPanelData.TestSkillInformationFormatList); } }
public TestSkillSaveDataFormat[] GetChildSkillSaveDataList(TestSkillDataFormat testSkillData) { List <TestSkillSaveDataFormat> _testSkillSaveDataList = new List <TestSkillSaveDataFormat> (); for (int i = 0; i < testSkillData.TestSkillSaveData.ChildSkillIDs.Count; i++) { _testSkillSaveDataList.Add(GetTestSkillSaveData(testSkillData.TestSkillSaveData.ChildSkillIDs[i])); } return(_testSkillSaveDataList.CloneEx().ToArray()); }
public TestSkillDataFormat GetTestSkillData(int slot) { TestSkillDataFormat _testSkillData = new TestSkillDataFormat(); TestSkillDataFormat[] _testSkillDataList = GetTestSkillDataList(); for (int i = 0; i < _testSkillDataList.Length; i++) { if (_testSkillDataList [i].SlotID == slot) { _testSkillData = _testSkillDataList [i].CloneEx(); } } return(_testSkillData); }