private PlayerShipLaserView GetPlayerShipLaserView() { ISWPool <PlayerShipLaserView> playerLaserPool = new SWPool <PlayerShipLaserView>(); playerLaserPool.instanceProvider = new ResourceInstanceProvider("Prefabs/player/PlayerShipLaser", LayerMask.NameToLayer("PlayerShipLaser")); return(playerLaserPool.GetInstance()); }
private PoolableView GetAsteroid() { ISWPool <AsteroidView> asteroidPool = new SWPool <AsteroidView>(); asteroidPool.instanceProvider = new ResourceInstanceProvider("Prefabs/asteroid/Asteroid", LayerMask.NameToLayer("Asteroid")); return(asteroidPool.GetInstance()); }