// Use this for initialization void Start() { anchor = GameObject.Find("Anchor"); giboData = GameObject.Find("GiboData").GetComponent <GiboData>(); publicVariable = GameObject.Find("PublicVariable").GetComponent <PublicVariable>(); PlaneGenerator.SetActive(false); for (i = 1; i <= 9; i++) { for (j = 1; j <= 10; j++) { position_name = "w" + i + "h" + j; mal_object = GameObject.Find(position_name); mal_position[i, j] = mal_object.transform.position; attackedPosition[i, j] = false; } } ReadDate(); CreateDefaultMal(); }