public int PerLoadAssets(string objectname) { if (perLoad.Contains(objectname)) { perLoad[objectname] = true; } else { Debug.Log("Error Object`s Name"); } if ((bool)perLoad["gameData"] == false) { gameData.PerLoad(); return(1); } if ((bool)perLoad["playData"] == false) { playData.PerLoad(); return(1); } if ((bool)perLoad["battleControl"] == false) { battleControl.PerLoad(); return(1); } return(0); }