Esempio n. 1
0
 private void rokkaLoginoroutButton_Click(object sender, EventArgs e)
 {
     if (!Boolean.Parse(this.isRokkaLoginLabel.Text))
     {
         if (String.IsNullOrWhiteSpace(this.user.Text) || String.IsNullOrWhiteSpace(this.password.Text))
         {
             return;
         }
         bool b = Ronin.Login(this.user.Text, this.password.Text);
         if (b)
         {
             MessageBox.Show("ログインに成功しました");
             this.isRokkaLoginLabel.Text     = "True";
             this.SettingData.IsRoninLogined = true;
             this.rokkaLoginoroutButton.Text = "ログアウト";
         }
         else
         {
             MessageBox.Show("ログインに失敗しました");
             this.rokkaLoginoroutButton.Text = "ログイン";
             this.SettingData.IsRoninLogined = false;
         }
     }
     else
     {
         Ronin.Logout();
         this.isRokkaLoginLabel.Text = "False";
         MessageBox.Show("ログアウトに成功しました");
         this.SettingData.IsRoninLogined = false;
         this.rokkaLoginoroutButton.Text = "ログイン";
     }
 }
Esempio n. 2
0
 void Awake()
 {
     game  = GameObject.Find("Game").GetComponent <Game> ();
     ronin = GameObject.Find("Ronin").GetComponent <Ronin> ();
 }