示例#1
0
 private void LoginHandler()
 {
     if (sensorBridge.LoggedIn)
     {
         sensorBridge.Logout();
     }
     else
     {
         sensorBridge.LoginUser(username, password);
     }
 }
示例#2
0
 private void Start()
 {
     GetComponentInChildren <Button>().onClick.AddListener(() => { sensorBridge.LoginUser(username, password); });
 }