|
@@ -46,6 +46,21 @@ public class StaticImportant : MonoBehaviour
|
|
|
{
|
|
|
models.Add(this.transform.GetChild(i).gameObject);
|
|
|
}
|
|
|
+
|
|
|
+ if (findChangeObjs)
|
|
|
+ {
|
|
|
+ FarShowObj = new GameObject[FarObjName.Length];
|
|
|
+ nearShowObj = new GameObject[NearObjName.Length];
|
|
|
+ for (int i = 0; i < FarObjName.Length; i++)
|
|
|
+ {
|
|
|
+ FarShowObj[i] = this.transform.Find(FarObjName[i]).gameObject;
|
|
|
+ }
|
|
|
+
|
|
|
+ for (int i = 0; i < nearShowObj.Length; i++)
|
|
|
+ {
|
|
|
+ nearShowObj[i] = this.transform.Find(NearObjName[i]).gameObject;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|