Пример #1
0
        public IBullet CreateBullet <T>(Point position, Point targetPosition, object fm) where T : IBullet, new()
        {
            IBullet       bullet  = new T();
            BulletBuilder builder = new BulletBuilder(bullet, typeof(T), position, targetPosition, fm);

            return(BulletBuilderDirector.Construct(builder));
        }
Пример #2
0
 public static IBullet Construct(BulletBuilder builder)
 {
     builder.AddBulletAtrr();
     builder.AddBulletAnimate();
     builder.AddInCharacterSystem();
     return(builder.GetResult());
 }