Beispiel #1
0
 public static void Tick()
 {
     if (instance == null)
     {
         return;
     }
     if (--instance.lifeTime == 0)
     {
         allItems.Remove(instance);
         instance = null;
     }
 }
Beispiel #2
0
 public LevelModifier() : base()
 {
     lifeTime = 50;
     Brush    = System.Drawing.Brushes.Orange;
     instance = this;
 }