public static Error ( string msg, bool fatal = false ) : void | ||
msg | string | |
fatal | bool | |
return | void |
public static void Error(string msg, bool fatal = false)
{
msg = "Error: " + msg;
Log(msg);
Debug.Log(msg);
}
// Callback static void OnLoginByName(JSON result) { try { Crown.instance.userId = result.GetField("userId").str; Crown.instance.userKey = result.GetField("userKey").str; Crown.instance.userSpot = result.GetField("spot").str; } catch { Crown.Error("Login error, data not found"); } }