ソースを参照

Update StaticImportant.cs

wartheking 10 ヶ月 前
コミット
09d4d7b567
1 ファイル変更15 行追加0 行削除
  1. 15 0
      Assets/Scripts/StaticImportant.cs

+ 15 - 0
Assets/Scripts/StaticImportant.cs

@@ -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;
+                }
+            }
         }
     }