コード例 #1
0
ファイル: DrawEngine.cs プロジェクト: CsegodiCsongor/MazeGame
 public static DrawEngine GetInstace()
 {
     if (Instance == null)
     {
         Instance = new DrawEngine();
     }
     return(Instance);
 }
コード例 #2
0
ファイル: Engine.cs プロジェクト: CsegodiCsongor/MazeGame
 public void Init(PictureBox pictureBox)
 {
     mazeGenerator = MazeGenerator.GetInstance();
     drawEninge    = DrawEngine.GetInstace();
     drawEninge.Init(pictureBox);
 }