public override void Bindings() { mediatorMap.Bind <SpaceShipView>().To <SpaceShipMED>(); mediatorMap.Bind <LaserView>().To <LaserMED>(); mediatorMap.Bind <ShredderView>().To <ShredderMED>(); mediatorMap.Bind <FormationView>().To <FormationMED>(); ObjectFactory factory = uManager.GetOrAddExtension <ObjectFactory>(); factory.AddItemToFactory(FactoryItems.SPACESHIP); LaserPooler laserPooler = uManager.GetOrAddExtension <LaserPooler>(); laserPooler.TargetParent = transform; laserPooler.PooledAmount = 21; laserPooler.PooledObject = Resources.Load("Prefabs/Laser") as GameObject; laserPooler.WillGrow = false; SpaceShipPooler spaceShipPooler = uManager.GetOrAddExtension <SpaceShipPooler>(); spaceShipPooler.TargetParent = transform; spaceShipPooler.PooledAmount = 2; spaceShipPooler.WillGrow = false; spaceShipPooler.PooledObject = Resources.Load("Prefabs/SpaceShip") as GameObject; commandMap.Bind(ObjectPoolingEvents.DESTROY_LASER).To <DestroyLaserCMD>(); }