Ejemplo n.º 1
0
 void Start()
 {
     MakeD4();
     UpdateMesh();
     meshCollider.convex = true;
     bell = GetComponent <AudioClipScript>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     MakeD6();
     UpdateMesh();
     meshCollider.convex = true;
     bell = GetComponent <AudioClipScript>();
     Debug.Log("Normal length: " + mesh.normals.Length);
 }
 void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
 }