Script attached to 'tiaoshui' in scene '' is missing or no valid script is attached.
var anniu_mingzi: int;//anniu_mingzi=1。显示/隐藏按钮。=2隐藏/播放/显示按钮
var xianshi_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);