Example #1
0
 public virtual void AddObject(GameObj obj)
 {
     if (obj is Player)
     {
         AddRacket(obj);
         AddStaticObject(obj);
     }
     else
     {
         this.AddStaticObject(obj);
     }
 }
Example #2
0
 private void AddStaticObject(GameObj obj)
 {
     this.staticObjects.Add(obj);
     this.allObjects.Add(obj);
 }
Example #3
0
 private void AddRacket(GameObj obj)
 {
     this.player = obj as Player;
 }