コード例 #1
0
 void OnMouseOver()
 {
     //Debug.Log("hover over image");
     if (Input.GetMouseButtonDown(1))
     {
         if (sphereButtonEvent != null)
         {
             sphereButtonEvent.loadTexture(scene);
         }
         else
         {
             Debug.Log("sphereButtonEvent is null");
         }
     }
 }
コード例 #2
0
ファイル: UIScript.cs プロジェクト: bbm3h14aku/museum-home
 //load texture
 public void loadTextureButton()
 {
     sphereButtonEvent.loadTexture(textureName.text);
 }