コード例 #1
0
 void OnGUI()
 {
     if (GUI.Button(new Rect(Screen.width - 280, Screen.height - 60, 60, 40), "Reset"))
     {
         Debug.Log("reset");
         PieceFactory pf = Singleton <PieceFactory> .Instance;
         pf.reset();
         used_step     = 0;
         maintext.text = "";
     }
 }