代码出错,求大神解答

hq452378531 2012-09-19 11:07:51
using UnityEngine;
using System.Collections;

public class cubeScript : MonoBehaviour {

// Use this for initialization
void Start () {


}

// Update is called once per frame
void Update () {


}
void OnGUI()
{

if (GUI.Button(new Rect(440, Screen.height - 25, 65, 23), "Snapshot"))
{
LoadHelp.UploadPNG(this, "Snapshot", delegate(bool result)
{
if (result)
{
Application.Externaleval_r("alert('ok')");
}
}
);
}
}
}
他说我有错错在 LoadHelp.UploadPNG(this, "Snapshot", delegate(bool result)这行
然后显示是这样的错误Assets/DressingroomExample/cubeScript.cs(22,10): error CS0103: The name `LoadHelp' does not exist in the current context
这是什么问题?
...全文
68 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
q107770540 2012-09-19
  • 打赏
  • 举报
回复
LoadHelp在哪里定义的
添加引用了么
  • 打赏
  • 举报
回复
找不到LoadHelp类,确保是否加入了该类的命名空间引用

110,499

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧