コード例 #1
0
    /*
     *      set up wave manager, new wave every # of spawns, pause for 5 secs, have timer
     */

    void Start()
    {
        camBounds = GetComponent <CamBounds> ();

        screenCords = new Vector3[16];
        SetScreenCords();

        for (int i = 0; i < enemyShipGO.Length; i++)
        {
            ObjectPool.instance.AddToPool(enemyShipGO [i], enemyPoolSize);
        }
    }
コード例 #2
0
ファイル: EnemyManager.cs プロジェクト: SirBrott/2dShooter
    /*
        set up wave manager, new wave every # of spawns, pause for 5 secs, have timer
    */
    void Start()
    {
        camBounds = GetComponent<CamBounds> ();

        screenCords = new Vector3[16];
        SetScreenCords ();

        for (int i = 0; i < enemyShipGO.Length; i++) {
            ObjectPool.instance.AddToPool (enemyShipGO [i], enemyPoolSize);
        }
    }