1,100
社区成员
发帖
与我相关
我的任务
分享
public void OnButtonPressed(VirtualButtonBehaviour vb)
{
switch(vb.VirtualButtonName)
{
case "ChineseStyle":
bigMaterial.mainTexture = chinTexture1;
smallMaterial.mainTexture = chinTexture2;
break;
case "EuropeanStyle":
bigMaterial.mainTexture = euroTexture1;
smallMaterial.mainTexture = euroTexture2;
break;
case "SimpleStyle":
bigMaterial.mainTexture = simTexture1;
smallMaterial.mainTexture = simTexture2;
break;
}
Debug.Log (""+vb.VirtualButtonName+" is Found");
}