示例#1
0
    protected void _UseSkillFactory(Vector3 target, DOGOMemFactory factory)
    {
        if (!factory.isInit)
        {
            factory.Initialize();
        }

        var skill = factory.Allocate().GetComponent <HarvestPlayerSkill>();

        skill.factory = factory;
        skill.Activate(target);
    }
示例#2
0
    public DOGOMemFactory GetFactory(Effect.EEffectType type)
    {
        DOGOMemFactory factory = null;

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

        return(factory);
    }
示例#3
0
 public virtual void Initialize(DOGOMemFactory __factory)
 {
     factory = __factory;
 }