public void Play(EffectMgr effectMgr, AudioMgr audioMgr, object selfTrans) { Transform self = selfTrans as Transform; effectMgr.Play(EffectNameEnum.Spawn, self.position); audioMgr.Play(AudioNameEnum.spawn, AudioVolumeConst.SPAWN_VOLUME); }
public ViewBase(AiViewMgrBase <T> mgr) { _mgr = mgr; _iModel = InitModel(mgr); _effectMgr = mgr.EffectMgr; _aniMgr = mgr.AniMgr; _AudioMgr = mgr.AudioMgr; }
public AiViewMgrBase(string enemyID, object source, object selfTrans) { Self = selfTrans; _fsm = new ActionFSM <T>(); _viewDic = new Dictionary <T, IFsmState <T> >(); EffectMgr = new EffectMgr(); AudioMgr = new AudioMgr(enemyID, source); AniMgr = new AIAniMgr(selfTrans); ModelMgr = InitModelMgr(); InitViews(); InitFsm(); }