Exemplo n.º 1
0
 override public int AddEarnedBadge(core.Badge badge)
 {
     if (badges.Contains(badge))
     {
         return(0);
     }
     badges.Add(badge);
     return(1);
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 abstract public int AddEarnedBadge(core.Badge badge);