void Start() { if (_controllers == null) { return; } for (int i = 0; i < _controllers.Length; ++i) { DpnBasePeripheral controller = _controllers[i]; controller.EnableModel(true); EnablePointer(controller.name); } }
/// <summary> /// Called when [controller connected]. /// </summary> /// <param name="controller">The controller.</param> virtual public void OnControllerConnected(DpnBasePeripheral controller) { if (controller == null) { return; } controller.EnableModel(true); if (_connectedControllers.Count == 0) { SendMessageUpwards("OnPeripheralConnected", this); controller.EnableInternalObjects(true); _mainController = controller; } _connectedControllers[controller.name] = controller; }