Exemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();

            MapNodeManager myScript = (MapNodeManager)target;

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