Exemple #1
0
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();

            MapNodeManager myScript = (MapNodeManager)target;

            if (GUILayout.Button("Add New Node"))
            {
                myScript.CreateNewNode();
            }
        }
 private void Awake()
 {
     instance = this;
 }