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