using UnityEngine; public class MyGameClass : MonoBehaviour { void MyGameMethod() { Debug.LogError("error message"); Debug.Log("message"); } }