public void RegisterVirtualButton(CrossPlatformInput.VirtualButton button) { if (this.virtualButtons.ContainsKey(button.name)) { Debug.LogError("There is already a virtual button named " + button.name + " registered."); } else { this.virtualButtons.Add(button.name, button); if (!button.matchWithInputManager) { this.alwaysUseVirtual.Add(button.name); } } }
public void RegisterVirtualButton(CrossPlatformInput.VirtualButton button) { // check if already have a buttin with that name and log an error if we do if (virtualButtons.ContainsKey(button.name)) { Debug.LogError("There is already a virtual button named " + button.name + " registered."); } else { // add any new buttons virtualButtons.Add(button.name, button); // if we dont want to match to the input manager then always use a virtual axis if (!button.matchWithInputManager) { alwaysUseVirtual.Add(button.name); } } }
// Token: 0x06004DDB RID: 19931 RVA: 0x001A1810 File Offset: 0x0019FC10 private static void RegisterVirtualButton(CrossPlatformInput.VirtualButton button) { CrossPlatformInput.virtualInput.RegisterVirtualButton(button); }
protected Rect m_Rect; // The zone on screen where the button exists public void Enable(string name, bool pairwithinputmanager, Rect rect) { m_Button = new CrossPlatformInput.VirtualButton(name, pairwithinputmanager); m_Rect = rect; }
protected Rect m_Rect; // The zone on screen where the button exists public void Enable (string name,bool pairwithinputmanager, Rect rect) { m_Button = new CrossPlatformInput.VirtualButton(name, pairwithinputmanager); m_Rect = rect; }