Exemple #1
0
 void DisplayStatValues()
 {
     ForEachEnum <Base_Stat_Type>((statType) => {
         Base_Stat stat = stats.GetStat((Base_Stat_Type)statType);
         if (stat != null)
         {
             Debug.Log(string.Format("Stat {0}'s value is {1}",
                                     stat.StatName, stat.StatValue));
         }
     });
 }
Exemple #2
0
 void DisplayStatValues()
 {
     ForEachEnum <Base_Stat_Type>((statType) => {
         Base_Stat stat = stats.GetStat((Base_Stat_Type)statType);
         if (stat != null)
         {
             Stat_Vital vital = stat as Stat_Vital;
             if (vital != null)
             {
                 Debug.Log(string.Format("Stat {0}'s value is {1}/{2}",
                                         stat.StatName, vital.StatCurrentValue, stat.StatValue));
             }
             else
             {
                 Debug.Log(string.Format("Stat {0}'s value is {1}",
                                         stat.StatName, stat.StatValue));
             }
         }
     });
 }
 public Stat_Linker_Basic(Base_Stat stat, float ratio) : base(stat)
 {
     _ratio = ratio;
 }