public void GroundRule2Init() { double [] d; GroundLib gb = GroundScr._instance.groundLib; d = gb.ReckonRule2Init(); if (d != null) { GameObject[] Enobj = Re_EnemyObj(); for (int i = 0; i < Enobj.Length; i++) { if (Enobj[i] != null) { Debug.Log("Enobj[" + i + "]" + Enobj[i]); Enobj[i].transform.GetChild(0).GetComponent <EmenyScr>().ChangeDate(d); } } GameObject[] Plaobj = Re_PlayerObj(); for (int i = 0; i < Plaobj.Length; i++) { if (Plaobj[i] != null) { Debug.Log("Plaobj[" + i + "]" + Plaobj[i]); Plaobj[i].GetComponent <PlayerDate>().ChangeDate(d); } } } }