Esempio n. 1
0
 public static GameEntity SetStat(
     this GameEntity gameEntity,
     StatFlag statFlag,
     float value)
 {
     gameEntity.statsComp.Vars[statFlag.ToIdx()] = value;
     gameEntity.NotifyStatChange(statFlag, value);
     return(gameEntity);
 }
Esempio n. 2
0
 public static float GetStat(
     this GameEntity gameEntity,
     StatFlag statFlag)
 {
     return(gameEntity.statsComp.Vars[statFlag.ToIdx()]);
 }