Example #1
0
    // Use this for initialization
    void Awake()
    {
        LTEXT.LoadUIText("Text\\TEXT_UI");
        LTEXT.LoadKeyText("Text\\TEXT_Key");

        DataSaveLoad.instance.LoadData(ref listMyEmp, LTEXT.GetKey(KEYSTR.K_EMP));
    }
Example #2
0
 public void Fire()
 {
     DeleteEmployee(nSeleteNum);
     GameManager.instance.listMyEmp.RemoveAt(nSeleteNum - 1);
     DataSaveLoad.instance.SaveData(GameManager.instance.listMyEmp, LTEXT.GetKey(KEYSTR.K_EMP));
     ReSetEmpData();
 }
Example #3
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.A))
     {
         //Panel_Employee.instance.Enable(false);
         listMyEmp.Clear();
         DataSaveLoad.instance.SaveData(listMyEmp, LTEXT.GetKey(KEYSTR.K_EMP));
     }
 }
Example #4
0
    //

    public void BuyEmp(Employeeitems items)
    {
        GameManager.instance.listMyEmp.Add(items.StInfo);
        GameManager.instance.PlusMyMoney(items.StInfo.Money);
        DataSaveLoad.instance.SaveData(GameManager.instance.listMyEmp, LTEXT.GetKey(KEYSTR.K_EMP));

        // 해당 직원 삭제
        DeleteEmployee(items, (int)items.StInfo.MyJob);
        // 직원 다시 복구
        ST_EMPLOYEE_INFO temp = new ST_EMPLOYEE_INFO(Random.Range(1, 11), Random.Range(1, 11), 0.0f, 0.0f, 0, "Test",
                                                     items.StInfo.MyJob, EmployeeInfo.instance.GetRandomIdx());

        SetSelectEmp(temp, (int)items.StInfo.MyJob);
    }
Example #5
0
    //public ST_GENRE GetGenre(int idx)
    //{
    //    if (idx < listGenre.Count)
    //        return listGenre[idx];

    //    ST_GENRE temp = new ST_GENRE();
    //    temp.Money = 0;
    //    temp.Name = "null";

    //    return temp;
    //}
    #endregion

    public void PlusMyMoney(float fplus)
    {
        MoneyPlus += fplus;

        PlayerPrefs.SetFloat(LTEXT.GetKey(KEYSTR.T_PLUSMONEY), MoneyPlus);
    }
Example #6
0
 public void AddEmp(ST_EMPLOYEE_INFO stinfo)
 {
     GameManager.instance.listMyEmp.Add(stinfo);
     DataSaveLoad.instance.SaveData(GameManager.instance.listMyEmp, LTEXT.GetKey(KEYSTR.K_EMP));
 }