void ShowPlayerInfo(int index, NUserInfo info, NGroupInfo groupInfo)
 {
     if (index >= 4)
     {
         return;
     }
     userCells[index].nameLabel.text  = info.name;
     userCells[index].levelLabel.text = string.Format("Lv.{0}",
                                                      GlobalFunction.CalculatePlayerLevel(info.contribution)
                                                      );
     userCells[index].interestLabel.text = string.Format("分配比例:{0}%",
                                                         GlobalFunction.CalculateInterest(info.contribution, groupInfo.totalContribution, groupInfo.userList.Count) * 100
                                                         );
 }
Exemple #2
0
 public double GetPlayerInterest()
 {
     return(GlobalFunction.CalculateInterest(personContribution, totalContribution, GetManorPersonNumber()));
 }