public bool ChangeSkill(SpawnCode code, GameObject _parents, GameObject _child) { //언락 여부 체크 if (!spawn.GetIsUnlocked(code)) { return(false); } //스킬 생성 & 할당 string what = (code.ToString().Substring(0, 1)); switch (what) { case "R": spawn.GetSkill_Red(code, _child); break; case "G": spawn.GetSkill_Green(code, _child); break; case "B": spawn.GetSkill_Blue(code, _child); break; } //스킬 메커니즘 초기화 _parents.GetComponent <PlayerStatus>().Init_Skill(); //서버 통신 router.PostRouter(PostType.PLAYER_SKILL_CHANGE, code); return(true); }