Esempio n. 1
0
        public void Add(WorldObject obj)
        {
            if (obj == null)
            {
                return;
            }

            if (obj is Grid)
            {
                gameGrids.Add((Grid)obj);
            }
            else
            {
                gameObjects.Add(obj);
            }
        }
Esempio n. 2
0
 public Command(WorldObject receiver)
 {
     this.receiver = receiver;
 }