首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

代码疏失,求大神解答

2012-10-19 
代码出错,求大神解答using UnityEngineusing System.Collectionspublic class cubeScript : MonoBehavio

代码出错,求大神解答
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
这是什么问题?

[解决办法]
找不到LoadHelp类,确保是否加入了该类的命名空间引用
[解决办法]
LoadHelp在哪里定义的
添加引用了么

热点排行