Пример #1
0
    public void CheckLeveling()
    {
        Data.CompanyStructure companyStructure = CompanyStructure.instance.GetCompanyStructure();

        if (companyStructure.exp == companyStructure.GetCompanyMaxExp())
        {
            companyStructure.exp = 0;
            companyStructure.level++;
            companyStructure.point++;
        }
        else if (companyStructure.exp > companyStructure.GetCompanyMaxExp())
        {
            companyStructure.exp = companyStructure.GetCompanyMaxExp() - companyStructure.exp;
            companyStructure.level++;
            companyStructure.point++;
        }
    }
Пример #2
0
 public int GetCompanyMaxExp()
 {
     return(companyStructure.GetCompanyMaxExp());
 }