public void AddMyCop() { MainSystem.AddSlave(thisSlave.key, thisSlave.star, thisSlave.name, thisSlave.health, (int)thisSlave.stressBase, (int)thisSlave.loyaltyBase, thisSlave.pay, (int)thisSlave.workPowerBase); if (thisSlave.titleKey >= 5000) { MainSystem.Slaves[MainSystem.Slaves.Count - 1].titleKey = thisSlave.titleKey; MainSystem.Slaves[MainSystem.Slaves.Count - 1].title = thisSlave.title; } MainSystem.UpdateSlave(); statusPopup.enabled = false; gatChaplay.enabled = false; }
public void Load() { mainSystem.SetMoney(PlayerPrefs.GetString("CopMoney")); mainSystem.maxSlaves = PlayerPrefs.GetInt("ItemCnt_0"); mainSystem.dateManager.year = PlayerPrefs.GetInt("Year"); mainSystem.dateManager.month = PlayerPrefs.GetInt("Month"); mainSystem.dateManager.day = PlayerPrefs.GetInt("Day"); mainSystem.chief.workPower = PlayerPrefs.GetInt("ChiefPower"); mainSystem.chief.wpCost = PlayerPrefs.GetInt("ChiefPC"); mainSystem.chief.workCritical = PlayerPrefs.GetInt("ChiefCri"); mainSystem.chief.wcCost = PlayerPrefs.GetInt("ChiefCC"); mainSystem.chief.handsCnt = PlayerPrefs.GetInt("ChiefHands"); mainSystem.chief.handsCost = PlayerPrefs.GetInt("ChiefHC"); for (int i = 0; i < PlayerPrefs.GetInt("SlaveCnt"); i++) { mainSystem.AddSlave( PlayerPrefs.GetString("SlaveKey_" + i), PlayerPrefs.GetInt("SlaveStar_" + i), PlayerPrefs.GetString("SlaveName_" + i), PlayerPrefs.GetInt("SlaveHealth_" + i), PlayerPrefs.GetInt("SlaveStress_", +i), PlayerPrefs.GetInt("SlaveLoyal_" + i), PlayerPrefs.GetInt("SlavePay_" + i), PlayerPrefs.GetInt("SlavePower_" + i) ); mainSystem.Slaves[i].titleKey = PlayerPrefs.GetInt("SlaveTitle_" + i); } mainSystem.UpdateSlave(); for (int i = 0; i < PlayerPrefs.GetInt("WorkCnt"); i++) { mainSystem.Works.Add(mainSystem.workQuest.GetComponent <WorkManager>().work[int.Parse(PlayerPrefs.GetString("WorkKey_" + i)) - 1]); mainSystem.Works[i].workCheckPoint = PlayerPrefs.GetInt("WorkCP_" + i); } for (int i = 0; i < PlayerPrefs.GetInt("ItemCnt"); i++) { mainSystem.Items[i].cnt = PlayerPrefs.GetInt("ItemCnt_" + i); } mainSystem.skillMaster.UpdateAll(); mainSystem.ErrorPopup("불러오기 완료"); }
public void AddNoye() { m.AddSlave("SungBae", 5, "배성현", 100, 50, 50, 1000, 60); }