为什么play点击有效一导出WIN就没法点击呢
Script attached to 'tiaoshui' in scene '' is missing or no valid script is attached.var anniu_mingzi: int;//anniu_mingzi=1。显示/隐藏按钮。=2隐藏/播放/显示按钮
varxianshi_anniu: GameObject;//下一级要显示的菜单
var yinchang_anniu: GameObject;//要隐藏的菜单
//////////////////
var xiaohaotli:float;//消耗或者增加体力
var tili:float=100;//体力上限
private var xuetiao:GameObject;
xuetiao=GameObject.Find("tili");
var xutiaojiaoben : tili;//调用的脚本
// xutiaojiaoben=xuetiao.GetComponent("tili");
function Start () {
}
function Update () {
}
function OnMouseUp()
{
print("anniu_mingzi="+anniu_mingzi);
anniu_jiaoben(anniu_mingzi);
}
function anniu_jiaoben(anniu : int)
{
if (anniu==1)
{
xianshi_anniu.active=true;
yinchang_anniu.active=false;
}
if (anniu==2&&tili>10)//3级菜单
{
xianshi_anniu.active=true;
yinchang_anniu.active=false;
tili=tili-10;
print("tili");
xutiaojiaoben.a(xiaohaotli);
}
else if (anniu==2&&tili<11)
{
楼主是超人 好帖就是要顶 顶顶多好 真心顶 LZ真是人才 好帖就是要顶 真心顶 难得一见的好帖 很好哦