protected void _UseSkillFactory(Vector3 target, DOGOMemFactory factory) { if (!factory.isInit) { factory.Initialize(); } var skill = factory.Allocate().GetComponent <HarvestPlayerSkill>(); skill.factory = factory; skill.Activate(target); }
public DOGOMemFactory GetFactory(Effect.EEffectType type) { DOGOMemFactory factory = null; switch (type) { case Effect.EEffectType.VALUE: factory = _damageFactory; break; } return(factory); }
public virtual void Initialize(DOGOMemFactory __factory) { factory = __factory; }