using UnityEngine;
using System.Collections;
public class hh : MonoBehaviour {
public bool e = true;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnMouseDown(){
if(UICamera.hoveredObject == null){
if(e==true){
GameObject.Find("box").renderer.material.color = Color.red;
e=false;
}
else if(e==false){
GameObject.Find("box").renderer.material.color = Color.yellow;
e=true;
}
}
}NGUI点击按钮时如何屏蔽场景鼠标事件
游戏开发中的OpenGL ES滤镜与视频编解码算法
最新推荐文章于 2021-05-19 16:44:03 发布
本文深入探讨了游戏开发中OpenGL ES滤镜的应用及视频编解码算法的关键技术,旨在提升游戏画面质量和用户体验。
1万+

被折叠的 条评论
为什么被折叠?



