unity3d实例化位置 70
为什么我的射线射中岩石之后爆炸效果在飞机后面?publicGameObjectexplosion;publicGameObjectplayerexplosion;void...
为什么我的射线射中岩石之后爆炸效果在飞机后面? public GameObject explosion; public GameObject playerexplosion; void OnTriggerEnter(Collider other) { Destroy (other.gameObject); Destroy (gameObject); if(other.tag=="player")Instantiate (playerexplosion, other.transform.position, other.transform.rotation); else Instantiate (explosion, transform.position, transform.rotation); }}
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询