コード例 #1
0
ファイル: WeaponManager.cs プロジェクト: sunhaobo0112/Demo
 private void Start()
 {
     weaponList = GameCommon.GetChildList(this.transform);
     foreach (Transform t in weaponList)
     {
         t.gameObject.SetActive(false);
     }
 }
コード例 #2
0
ファイル: TriggerBase.cs プロジェクト: sunhaobo0112/Demo
    void EnemySpawn()
    {
        List <Transform> list = GameCommon.GetChildList(transform);

        foreach (Transform t in list)
        {
            GameObject.Instantiate(enemyPrefab, t.position, Quaternion.identity);
        }
    }