Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        Roads roads = (Roads)target;

        if (GUILayout.Button("SetLanes"))
        {
            roads.SetLanes();
        }
        if (GUILayout.Button("LanesConnect"))
        {
            roads.LanesConnect();
        }
    }