public static DrawEngine GetInstace()
 {
     if (Instance == null)
     {
         Instance = new DrawEngine();
     }
     return(Instance);
 }
Exemple #2
0
 public void Init(PictureBox pictureBox)
 {
     mazeGenerator = MazeGenerator.GetInstance();
     drawEninge    = DrawEngine.GetInstace();
     drawEninge.Init(pictureBox);
 }