コード例 #1
0
    void Start()
    {
        islandSize        = crewController.selectArea(30);
        islandHeight      = (int)Random.Range(3, 6);
        themeID           = crewController.selectTheme();
        bossIndex         = crewController.selectBoss();
        level             = crewController.selectLevel(2);
        islandTerrainType = (int)Random.Range(0, 6);

        // level =
        GameObject[] players = GameObject.FindGameObjectsWithTag("Player");
        player = players[0];
        for (int i = 0; i < transform.childCount; i++)
        {
            //Debug.Log(transform.GetChild(i).name);
            if (transform.GetChild(i).name.Equals("TextMeshPro"))
            {
                //Debug.Log(transform.name +":" +transform.GetChild(i).name);
                textObj = transform.GetChild(i).gameObject;
            }
        }
    }