Example #1
0
 public Status(StatusTypes.StatusEnum statusEnum)
 {
     this.statusEnum = statusEnum;
 }
    public static int getAppliedStatusCount(StatusTypes.StatusEnum statusEnum, List <StatusGameObject> activeStatuses)
    {
        StatusGameObject match = activeStatuses.FirstOrDefault(activeStatuse => activeStatuse.status.statusEnum == statusEnum);

        return(match == null ? 0 : match.status.data.statusCount);
    }