private void OnDestroy()
 {
     if (this.mIsOpen)
     {
         GamesirInput.Instance().OnDestory();
     }
 }
 private void OnApplicationQuit()
 {
     if (this.mIsOpen)
     {
         GamesirInput.Instance().OnQuit();
     }
 }
 public void StartSir()
 {
     if (!this.IsConnected())
     {
         GamesirInput.Instance().AutoConnectToGCM();
     }
 }
 public void StopSir()
 {
     if (this.IsConnected())
     {
         GamesirInput.Instance().DisConnectGCM();
     }
 }
 private void Start()
 {
     GamesirInput.Instance().SetIconLocation(IconLocation.BOTTOM_CENTER);
     GamesirInput.Instance().setHiddenConnectIcon(true);
     GamesirInput.Instance().onStart();
     this.mIsOpen = true;
 }
 public void ShowGameSirDialog()
 {
     if (this.mIsOpen)
     {
         GamesirInput.Instance().OpenConnectDialog();
     }
 }
 public float GetAxis(string axisName)
 {
     if (this.mIsOpen)
     {
         return(GamesirInput.Instance().GetAxis(axisName));
     }
     return(0f);
 }
 public int GetGameSirState()
 {
     if (this.mIsOpen)
     {
         return(GamesirInput.Instance().GetGameSirState());
     }
     return(0);
 }
 public bool GetButton(string buttonName)
 {
     return(this.mIsOpen && GamesirInput.Instance().GetButton(buttonName));
 }