error CS0103: The name ‘print‘ does not exist in the current context(Print/Debug.log)异常

print 在unity报错,疑难杂症

代码:`using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using UnityEngine;
using Debug = UnityEngine.Debug;

///
///
///
public class Test : MonoBehaviour
{
void Start()
{
TestSingleton.Instance.myfunc();
}
}

public class TestSingleton : Singleton
{
public void myfunc()
{
//Debug.log(“TestSingleton”);
print(“TestSingleton”);
}
}`

error CS0103: The name ‘print‘ does not exist in the current context(Print/Debug.log)异常
解决办法

error CS0103: The name ‘print‘ does not exist in the current context(Print/Debug.log)异常
有谁知道为什么在第二个Class类里面写Print会报错?