error CS1501: No overload for method LoginUser' takes
0’ arguments
simple error though dont know hwy i m getiing it ive used this before but now getting errors…
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class LoginRegister : MonoBehaviour {
public string UserLoginURL = "http://com/loggin";
public string UserRegiesterURL = "http://com/register";
public string Username = "";
public string Pass = "";
public string Email = "";
public bool Login = false;
//fetched from mysql
public Text XPText;
public Image XPbar;
public Text GoldText;
public Text LevelText;
public Text UsernameText;
public Text RankText;
//setactive when loggedin
public GameObject Logedin;
//inout by player
public Text InputUsername;
public Text InputPassword;
public Text InputEmail;
//------------------------------------------------------------------------------------
void Loggin()
{
Username = InputUsername.text;
Pass = InputPassword.text;
StartCoroutine(LoginUser());
}
//------------------------------------------------------------------------------------
void Register()
{
Username = InputUsername.text;
Pass = InputPassword.text;
Email = InputEmail.text;
StartCoroutine(RegisterUser());
}
//------------------------------------------------------------------------------------
IEnumerator LoginUser(string User, string Pass ) {
WWW Login = new WWW (UserLoginURL + "Username" + User + "Pass" + Pass + "Email" + Email);
yield return Login;
if (Login.error == null) {
// display resaults: ???
string [] splits = Login.text.Split(new char[]{ ',' });
UsernameText.text = splits[0];
GoldText.text = splits[1];
XPText.text = splits[2];
LevelText.text = splits[3];
}
}
//------------------------------------------------------------------------------------
IEnumerator RegisterUser(string User, string Pass ) {
WWW Login = new WWW (UserLoginURL + "Username" + User + "Pass" + Pass + "Email" + Email);
yield return Login;
if (Login.error == null) {
}
}
//------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------
} // END OF FLASS //--------------------------------------------------------------------