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