void createController() { //create the keyboard controller GameObject go; { //Create GameObject go = init(); //Add specific components //Register Tracker ITracker newTracker = null; try { newTracker = adaptController(go); } catch { newTracker = null; } if (newTracker != null) { ControllerHandler.AddTracker(newTracker); } else { errorMsg.Add(trackerName + " not initialized"); Object.Destroy(go); } status = false; } }
void Awake() { //if(current == null) { DontDestroyOnLoad(this); //current = this; zmq = new ZmqInterface <miVRlink.Position6DofMessage>(); running = true; } ControllerHandler.AddTracker(this); if (Address != "" && Port > 0) { Init(Address, Port); } }
void OnEnable() { //add tracker to tracker list ControllerHandler.AddTracker(this); }
void Awake() { ControllerHandler.AddTracker(this); }