Exemplo n.º 1
0
 void Awake()
 {
     InitialiseAudioSources();
     Compass = MeshGenerator.CreateCompass(50f, 2f, 20f, 40);
     Compass.transform.parent = transform;
     // Compass.transform.position = transform.position; // testing...
     Compass.transform.position += 1.5f * Vector3.up;
     Compass.GetComponent <MeshRenderer>().material = CompassMaterial;
     AddTriggers();
 }