[Unity&缺少引用]error CS0117'Destory''Debug'没有定义
error CS0117: `UnityEngine.Object' does not contain a definition for `Destory'
添加using System.Debug试试
把using System.Collections;注释掉
UnityEngine.Destroy(gameObject);
UnityEngine.Debug.Log("message");
试试
试试从正常 的脚本 里面 的 Destroy(gameObject); 复制粘贴 到 错误 的地方。
参考资料:
1.
error CS0117: `Debug' does not contain a definition for `Log'
2.
3.