Exemplo n.º 1
0
    public BaseGameEntity GetEntity(TowerType towerType)
    {
        BaseGameEntity entity = PoolManager.GetEntity(towerType);

        entity.OnCreate();
        towerList.Add(entity);
        return(entity);
    }
Exemplo n.º 2
0
    public BaseGameEntity GetEntity(ProjectileType projectileType)
    {
        BaseGameEntity entity = PoolManager.GetEntity(projectileType);

        entity.OnCreate();
        projectileList.Add(entity);
        return(entity);
    }
Exemplo n.º 3
0
    // gets a resting Entity from the PoolManager
    public BaseGameEntity GetEntity(EnemyType enemyType)
    {
        BaseGameEntity entity = PoolManager.GetEntity(enemyType);

        entity.OnCreate();
        enemyList.Add(entity);
        return(entity);
    }