實(shí)例化生產(chǎn)
GameObject.Instantiate(Object,Vector3,Quaternion);
Object:用于實(shí)例化的預(yù)制體
Vector3:實(shí)例化后生成的物體所在的位置
Quaternion[四元數(shù)]:實(shí)例化后生成的物體的旋轉(zhuǎn)狀態(tài)
Quaternion.identity:無旋轉(zhuǎn)
Quaternion也代表的Rotation
銷毀游戲物體
GameObject.Destory(Object,float);
第二種重載澜术,第二個(gè)參數(shù)的意思是銷毀的時(shí)間