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

        ClothGenerator myScript = (ClothGenerator)target;

        if (GUILayout.Button("Generate Cloth"))
        {
            myScript.Initialize();
        }
    }
Exemplo n.º 2
0
 void Start()
 {
     generator = this;
     Clear();
 }