摘要:
using System.Collections;using System.Collections.Generic;using UnityEngine; public class MouseControlModel : MonoBehaviour{ //旋转最大角度 public GameObjec 阅读全文
摘要:
public GameObject monster;monster是你想要生成的物体 Instantiate(monster,new Vector3 ( Random.Range (-4.5f,4.5f), Random.Range(5.5f, 6f),-1), Quaternion.Euler(n 阅读全文
摘要:
image1.gameObject.SetActive(true);开启image,image1.gameObject.SetActive(false);关闭image,可以用事件或者button开启或者关闭。 阅读全文
摘要:
public GameObject monster; monster是你想要生成的物体 Instantiate(monster,new Vector3 ( Random.Range (-4.5f,4.5f), Random.Range(5.5f, 6f),-1), Quaternion.Euler( 阅读全文
摘要:
核心脚本代码 Image IMGE = transform.Find("IMGE").GetComponent<Image>();Sprite sprite1 = Resources.Load("Textrues/yutujing", typeof(Sprite)) as Sprite;IMGE.s 阅读全文
摘要:
##1.Editor Editor文件夹可以在根目录下,也可以在子目录里,只要名子叫Editor就可以。比如目录:/xxx/xxx/Editor 和 /Editor 是一样的,无论多少个叫Editor的文件夹都可以。Editor下面放的所有资源文件或者脚本文件都不会被打进发布包中,并且脚本也只能在编 阅读全文