コード例 #1
0
 void DrawLeftMenu()
 {
     GUILayout.BeginArea(sideWindowRect, GUI.skin.box);
     if (GUILayout.Button("Create Node 1"))
     {
         Debug.Log("Create Node 1");
         if (brain == null)
         {
             brain = ScriptableObject.CreateInstance <Brain>();
         }
         brain.AddNeuron();
     }
     GUILayout.EndArea();
 }