// Create big explotion: void CreateBigExplotion(IGameObject o) { // Creating explotion: var explotionBig = new CExplotion((CGameObject)o, 8); //new CExplosionBig((CGameObject)o); // Adding to lists: AddObject(explotionBig); }
// Create explotion: void CreateSmallExplotion(IGameObject o) { // Creating explotion: var explotionSmall = new CExplotion((CGameObject)o, 2);; //new CExplosionSmall(o.X, o.Y); // Adding to lists: AddObject(explotionSmall); }