// Use this for initialization void Start() { if (dist == null) { dist = GetComponent <DistanceToCamera> (); } }
// // 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]; }
// Use this for initialization void Start() { if (dist == null) { dist = GetComponent <DistanceToCamera> (); } mat = rend.material; init = mat.color; }
// Use this for initialization void Start() { dist = GetComponent <DistanceToCamera> (); }