Exemplo n.º 1
0
    public Effect CreateEffect(Effect.EEffectType type)
    {
        var factory = GetFactory(type);
        var effect  = factory.Allocate().GetComponent <Effect>();

        effect.Initialize(factory);
        return(effect);
    }
Exemplo n.º 2
0
    public DOGOMemFactory GetFactory(Effect.EEffectType type)
    {
        DOGOMemFactory factory = null;

        switch (type)
        {
        case Effect.EEffectType.VALUE:
            factory = _damageFactory;
            break;
        }

        return(factory);
    }