예제 #1
0
 public static IBullet Construct(BulletBuilder builder)
 {
     builder.AddBulletAtrr();
     builder.AddBulletAnimate();
     builder.AddInCharacterSystem();
     return(builder.GetResult());
 }
예제 #2
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));
        }