Beispiel #1
0
 public static RoleDescriptions getRoleDescriptions()
 {
     if (role_descriptions == null)
     {
         role_descriptions = new RoleDescriptions();
     }
     return(role_descriptions);
 }
    private void UpdateInfoDisplay()
    {
        //更新信息栏里面的个人信息
        Role   role = Game.getRole();
        string info = "";

        info                 += role.getName() + "\n";
        info                 += RoleFactory.GetRoleNameByType(role.getType()) + "\n";
        info                 += role.getGenderString() + "\n";
        info                 += role.getSemester() + "\n\n";
        info                 += role.getComputer_c() + "\n";
        info                 += role.getMathmatic_c() + "\n";
        info                 += role.getElectronic_c() + "\n";
        info                 += role.getFinancial_c() + "\n\n";
        info                 += role.getWisdom() + "\n";
        info                 += role.getEQ() + "\n";
        info                 += role.getStrength() + "\n";
        info                 += role.getHair() + "\n";
        info                 += role.getCharm() + "\n";
        info                 += role.getGPA() + "\n";
        role_info.text        = info;
        role_description.text = RoleDescriptions.getRoleDescriptions().getDescription(RoleFactory.GetRoleNameByType(role.getType()));
    }
 public void OnShowClick()
 {
     UpdateInfoDisplay();
     main_panel.SetActive(!main_panel.activeSelf);
     role_description.text = RoleDescriptions.getRoleDescriptions().getDescription(RoleFactory.GetRoleNameByType(Game.getRole().getType()));
 }
Beispiel #4
0
 void Start()
 {
     roleDescription = RoleDescriptions.getRoleDescriptions();
     Update_sprite();
 }