Crown.Error C# (CSharp) Method

Error() public static method

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);
    }

Usage Example

Example #1
0
 // 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");
     }
 }
All Usage Examples Of Crown::Error