Пример #1
0
 public MoverBeam(ActBeam obj, Character src, Character dst, HitCallbackBeam onTriggerEnter)
 {
     this.mBeamObj       = obj;
     this.SrcCharacter   = src;
     this.DstCharacter   = dst;
     this.mUnit          = GTWorld.Instance.Ect.LoadEffect(obj.ID, 0, obj.Retain);
     this.mBeam          = this.mUnit.CacheTransform.GetComponent <F3DBeam>();
     this.CacheTransform = mUnit.CacheTransform;
     this.mUnit.Release(mBeamObj.Duration);
     this.mIsLoaded    = true;
     this.mHitCallback = onTriggerEnter;
 }
Пример #2
0
        public void MakeMove(ActBeam obj, Character src, Character dst, HitCallbackBeam onTriggerEnter)
        {
            MoverBeam mover = new MoverBeam(obj, src, dst, onTriggerEnter);

            mMovers.Add(mover);
        }