示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        UserName   = RandomText.NameText();
        UserGender = RandomText.gender;

        Week   = 1;
        Money  = 500;
        Points = 50;
        Food   = MaxFood;
        Health = MaxHealth;
        Level  = 1;
        //Salary = 270;

        //freelancing variable
        tutor = 15;
        //end for freelancing variable

        healthSlider.maxValue = MaxHealth;
        foodSlider.maxValue   = MaxFood;


        //Education Variable intilize
        IsUniversityAdmited   = false;
        IsCollegeAdmited      = false;
        IsUniversityGraduated = false;
        IsCollegeGraduated    = false;

        CollegePeriod    = 0;
        UniversityPeriod = 0;
        //end for education variable

        UpdateUI();

        LoadGame();
        setupAcademy();

        if (UserName == "")
        {
            UserInfoBox.SetActive(true);
        }
        UpdateUI();
    }
示例#2
0
 public void Close_User_Info_Box()
 {
     hideSeftyGlass();
     UserInfoBox.SetActive(false);
 }
示例#3
0
 public void Show_User_Info_Box()
 {
     showSeftyGlass();
     UserInfoBox.SetActive(true);
 }