示例#1
0
    public IBoardItem Generate(EBoardItemType itemType)
    {
        IBoardItemFactory factory;

        if (m_RegistedFactories.TryGetValue(itemType, out factory))
        {
            return(factory.Generate());
        }
        return(null);
    }
示例#2
0
 public BallFactory(EBoardItemType tarType)
 {
     m_ProductType = tarType;
 }