public override void OnEnable() { base.OnEnable(); mVirtualButton = new CrossPlatformInputManager.VirtualButton(ButtonName); CrossPlatformInputManager.RegisterVirtualButton(mVirtualButton); }
private void AddButton(string name) { // we have not registered this button yet so add it, happens in the constructor CrossPlatformInputManager.RegisterVirtualButton(new CrossPlatformInputManager.VirtualButton(name)); }