Exemple #1
0
    private PlayerShipLaserView GetPlayerShipLaserView()
    {
        ISWPool <PlayerShipLaserView> playerLaserPool = new SWPool <PlayerShipLaserView>();

        playerLaserPool.instanceProvider = new ResourceInstanceProvider("Prefabs/player/PlayerShipLaser", LayerMask.NameToLayer("PlayerShipLaser"));
        return(playerLaserPool.GetInstance());
    }
Exemple #2
0
    private PoolableView GetAsteroid()
    {
        ISWPool <AsteroidView> asteroidPool = new SWPool <AsteroidView>();

        asteroidPool.instanceProvider = new ResourceInstanceProvider("Prefabs/asteroid/Asteroid", LayerMask.NameToLayer("Asteroid"));
        return(asteroidPool.GetInstance());
    }