摘要: public GameObject monster;monster是你想要生成的物体 Instantiate(monster,new Vector3 ( Random.Range (-4.5f,4.5f), Random.Range(5.5f, 6f),-1), Quaternion.Euler(n 阅读全文
posted @ 2019-03-13 18:22 那爱恐怕忘不掉 阅读(195) 评论(0) 推荐(0) 编辑
摘要: image1.gameObject.SetActive(true);开启image,image1.gameObject.SetActive(false);关闭image,可以用事件或者button开启或者关闭。 阅读全文
posted @ 2019-03-13 18:21 那爱恐怕忘不掉 阅读(524) 评论(0) 推荐(0) 编辑
摘要: public GameObject monster; monster是你想要生成的物体 Instantiate(monster,new Vector3 ( Random.Range (-4.5f,4.5f), Random.Range(5.5f, 6f),-1), Quaternion.Euler( 阅读全文
posted @ 2019-03-13 13:34 那爱恐怕忘不掉 阅读(705) 评论(0) 推荐(0) 编辑
摘要: 核心脚本代码 Image IMGE = transform.Find("IMGE").GetComponent<Image>();Sprite sprite1 = Resources.Load("Textrues/yutujing", typeof(Sprite)) as Sprite;IMGE.s 阅读全文
posted @ 2019-03-13 13:30 那爱恐怕忘不掉 阅读(1670) 评论(0) 推荐(0) 编辑
摘要: ##1.Editor Editor文件夹可以在根目录下,也可以在子目录里,只要名子叫Editor就可以。比如目录:/xxx/xxx/Editor 和 /Editor 是一样的,无论多少个叫Editor的文件夹都可以。Editor下面放的所有资源文件或者脚本文件都不会被打进发布包中,并且脚本也只能在编 阅读全文
posted @ 2019-03-13 13:19 那爱恐怕忘不掉 阅读(300) 评论(0) 推荐(0) 编辑