摘要:
using UnityEngine; using System.Collections; public class destroy : MonoBehaviour { void Start () { print("start"); destroyObject(); //destroyImmediateObj(); ... 阅读全文
摘要:
using UnityEngine; using System.Collections; public class hitCheck : MonoBehaviour { //两个物体能发生碰撞的条件是:两个都带有collider且其中一个是刚体。 // Use this for initialization void Start () { } ... 阅读全文
摘要:
using UnityEngine; using System.Collections; public class mouse : MonoBehaviour { //private Vector3 lasePos; private Vector3 offSet; private Vector3 ScreenSpace; //1. void OnMous... 阅读全文
摘要:
using UnityEngine; using System.Collections; public class rigidbody_ : MonoBehaviour { private Rigidbody r; void Start () { //Rigidbody rb = GetComponent(); //float mass = rb... 阅读全文