Crown.Error C# (CSharp) 메소드

Error() 공개 정적인 메소드

public static Error ( string msg, bool fatal = false ) : void
msg string
fatal bool
리턴 void
    public static void Error(string msg, bool fatal = false)
    {
        msg = "Error: " + msg;
        Log(msg);
        Debug.Log(msg);
    }

Usage 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