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); } }
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(); } }