// Set the singleton instance of InputManager here. protected void Awake() { if (Instance == null) { Instance = this; } else { Destroy(this); } _stylusTransformations = new StylusTransformations(); _buttons = new StylusButtons(); _eventDebugger = new EventDebugger(); }
// Set the singleton instance of InputManager here. protected void Awake() { if (Instance == null) { Instance = this; } else { Destroy(this); } _stylusTransformations = new StylusTransformations(); _buttons = new StylusButtons(); _buttons.StylusActionButtonData = new StylusButtonData { SourceID = 0, Pressure = 0 }; _buttons.StylusBackButtonData = new StylusButtonData { SourceID = 1, Pressure = 0 }; _eventDebugger = new EventDebugger(); }