Example #1
0
    public void InitializeRuntime()
    {
        if (Application.isPlaying)
        {
            Object.DontDestroyOnLoad(Instance);

            listener      = new PureDataListener(Instance);
            bridge        = new PureDataBridge(Instance);
            communicator  = new PureDataCommunicator(Instance);
            commandParser = new PureDataCommandParser(Instance);
            patchManager  = new PureDataPatchManager(Instance);
            itemManager   = new PureDataItemManager(Instance);
        }
    }
Example #2
0
    public void InitializeRuntime()
    {
        if (Application.isPlaying)
        {
            DontDestroyOnLoad(this);

            listener     = new PureDataListener(Instance);
            bridge       = new PureDataBridge(Instance);
            communicator = new PureDataCommunicator(Instance);
            patchManager = new PureDataPatchManager(Instance);
            idManager    = new PureDataIdManager(Instance);
            itemManager  = new PureDataItemManager(Instance);

            bridge.Start();
            communicator.Start();
            patchManager.Start();
        }
    }