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

        BoxTrigger boxTrigger = (BoxTrigger)target;

        if (GUILayout.Button("Apply transformation"))
        {
            boxTrigger.ApplyTransformation();
        }
        if (GUILayout.Button("Turn into cube"))
        {
            boxTrigger.TurnIntoCube();
        }
    }