Assets\B.cs(19,15): error CS1061: 'Text' does not contain a definition for 'Text' and no accessible extension method 'Text' accepting a first argument of type 'Text' could be found (are you missing a using directive or an assembly reference?)
翻译
Assets\B.cs(19,15):错误CS1061:“Text”不包含“Text”的定义,并且找不到接受“Text”类型的第一个参数的可访问扩展方法“Text”(是否缺少using指令或程序集引用?)
其实就是属性值写错了,导致提示错误。
错误代码:
textF.Text = "失败了!";
正确代码:
textF.text = "失败了!";