public ScheInfo(string[] keys) { scheGroupID = int.Parse(keys[0]); remarks = keys[1]; scheType = (SCHE_TYPE)int.Parse(keys[2]); // yearNum = int.Parse(keys[3]); monthNum = int.Parse(keys[4]); dayNum = int.Parse(keys[5]); modeIndex = (MODE_INDEX)int.Parse(keys[6]); stepType = (STEP_TYPE)int.Parse(keys[7]); expoType = (EXPO_TYPE)int.Parse(keys[8]); adjust = (ADJUST)int.Parse(keys[9]); money = int.Parse(keys[10]); prefabPath = keys[11]; localIndex = keys[12]; }
//★일단 학교/방과후/휴식으로 간단하게만 나눠놓음. 매개변수, 함수 등 언제든지 수정될 수 잇음. void DrawBG(SCHE_TYPE scheType) { string bgLocation = "CutScenes_BG/"; if (scheType == SCHE_TYPE.School) { bgLocation += "school"; } else if (scheType == SCHE_TYPE.AfterSchool) { bgLocation += "park"; } else if (scheType == SCHE_TYPE.Rest) { } eventSceneBG.sprite = Resources.Load <Sprite>(bgLocation) as Sprite; }
//★BG처럼 일단 간단하게만 만들어놓음. 매개변수, 함수 등 언제든지 수정될 수 잇음. void DrawCharScene(SCHE_TYPE scheType, bool isSuccess) { int age = 10; //★딸의 나이를 반영해야된다. 임시변수 string charLocation = "CutScenes/"; switch (age) { case 10: charLocation += "10/"; if (scheType == SCHE_TYPE.School) { charLocation += "school/20_01_"; if (isSuccess) { charLocation += "01"; } else { charLocation += "02"; } } else if (scheType == SCHE_TYPE.AfterSchool) { charLocation += "after_school/11_01_"; if (isSuccess) { charLocation += "01"; } else { charLocation += "02"; } } else if (scheType == SCHE_TYPE.Rest) { charLocation += "rest/"; } break; default: break; } eventScheneChar.sprite = Resources.Load <Sprite>(charLocation) as Sprite; }