Beispiel #1
0
 public void Destroy(ShotOneView oneView)
 {
     //Debug.Log("[ShotFactory] Destroy");
     _pool.Despawn(oneView);
     _engine.removeEntity(_entities[oneView]);
     _entities.Remove(oneView);
 }
Beispiel #2
0
        private ShotOneView CreateEntity(ShotOneView oneView)
        {
            var entity = _engine.createEntity();

            entity.add(oneView);
            entity.add(_engine.createComponent <ShotComponent>());
            _engine.addEntity(entity);
            _entities.Add(oneView, entity);
            return(oneView);
        }
 public SignalShotDestroy(ShotOneView oneView)
 {
     OneView = oneView;
 }