Esempio n. 1
0
    // Load scripts
    void InitializeScripts()
    {
        // --- Web sockets
        serverInterface = new ServerInterface();
        serverInterface.Initialize();

        // --- Interfaces
        List<UIBase> interfaces = new List<UIBase>();

        // Dashboard
        UIBase dashboard = interfaceObject.GetComponent<DashboardUI>();
        dashboard.Initialize();
        interfaces.Add(dashboard);

        // Facebook
        UIBase facebookPanel = interfaceObject.GetComponent<FacebookPanel>();
        dashboard.Initialize();
        interfaces.Add(dashboard);

        activeInterfaces = interfaces.ToArray();

        // --- Events
        eventProcessor = eventProcessorObject.GetComponent<EventProcessor>();
        eventProcessor.Initialize();

        // --- Get main page content
        //Debug.Log("pinging server for content....");
    }