setTheme() public method

public setTheme ( ThemingMode, mode ) : void
mode ThemingMode,
return void
Example #1
0
    // Use this for initialization
    void Start()
    {
        GeometryLoader gl = GameObject.Find("GeometryLoader").GetComponent <GeometryLoader>();

        gl.setTheme(new NatureThemingMode());

        string path = "";

        if (Application.platform == RuntimePlatform.OSXEditor)
        {
            path = "Data/";
        }
        else if (Application.platform == RuntimePlatform.OSXPlayer)
        {
            path = "../../";
        }
        else if (Application.platform == RuntimePlatform.WindowsEditor)
        {
            path = "Data/";
        }
        else if (Application.platform == RuntimePlatform.WindowsPlayer)
        {
            path = "../";
        }

        loadPedestrianFile(path + "b090_combined.txt");
        loadGeometryFile(path + "geometry.txt");
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        GeometryLoader gl = GameObject.Find("GeometryLoader").GetComponent <GeometryLoader>();

        gl.setTheme(new LabThemingMode());

        var GeometryXML = EditorUtility.OpenFilePanel(
            "Load Geometry", "", "xml");

        var TrajectoryXML = EditorUtility.OpenFilePanel(
            "Load Trajectory", "", "xml");

        loadPedestrianFile(TrajectoryXML);
        loadGeometryFile(GeometryXML);
    }