override public int AddEarnedBadge(core.Badge badge) { if (badges.Contains(badge)) { return(0); } badges.Add(badge); return(1); }
override public int AddEarnedBadge(core.Badge badge) { try { return(connection.Insert(new Badge { BadgeId = (int)badge, Timestamp = DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond })); } catch (Exception e) { Debug.LogWarningFormat("Error inserting badge: {0}", e); return(-1); } }
abstract public int AddEarnedBadge(core.Badge badge);