Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     if (dist == null)
     {
         dist = GetComponent <DistanceToCamera> ();
     }
 }
Ejemplo n.º 2
0
//
//	public float[] LODs;
//	bool[] trueLODs;
//	bool[] LODDid;

    // Use this for initialization
    void Start()
    {
        flapCount = Random.value * 10f;
        dist      = this.transform.GetChild(0).GetComponent <DistanceToCamera> ();
//		trueLODs = bool[LODs.Length];
//		LODDid = bool[LODs.Length];
    }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     if (dist == null)
     {
         dist = GetComponent <DistanceToCamera> ();
     }
     mat  = rend.material;
     init = mat.color;
 }
Ejemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     dist = GetComponent <DistanceToCamera> ();
 }