public void OnFirstButtonClick()
 {
     if (tf.GetComponent <InputField>().text.Length == 0 || tf.GetComponent <InputField>().text == "Enter Name")
     {
         enterNameHint.SetActive(true);
     }
     else if ((blue.isOn && red.isOn) || (!blue.isOn && !red.isOn))
     {
         colorHint.SetActive(true);
     }
     else
     {
         StaticVarScript.changeName(tf.GetComponent <InputField>().text);
         if (red.isOn)
         {
             StaticVarScript.changeTeam(1);
         }
         m.ConnectToMatch();
     }
 }