示例#1
0
 protected override void OnEmitted(uint Cur, uint Max)
 {
     var Pos      = Position + OffsetAttr.Get();
     var InitAttr = NpcManager.GenerateInitAttr(SpeedAttr.Get(), HpAttr.Get(), 0, 0, 0, DamageAttr.Get(), GemAttr.Get(), 30, 30);
     var Entity   = NpcManager.AddNpc(Name, Pos, Team, 1, InitAttr);
     //Entity.MoveTo(Configure.CoreBasePosition);
 }
示例#2
0
        protected override void OnEmitted(uint Cur, uint Max)
        {
            var Radius = RadiusAttr.Get();
            var Angle  = Random.Range(0, Mathf.PI * 2);
            var Pos    = Position + new Vector2(Mathf.Sin(Angle) * Radius, Mathf.Cos(Angle) * Radius);

            var InitAttr = NpcManager.GenerateInitAttr(SpeedAttr.Get(), HpAttr.Get(), 0, 0, 0, DamageAttr.Get(), GemAttr.Get(), 30, 30);
            var Entity   = NpcManager.AddNpc(Name, Pos, Team, 1, InitAttr);
            //Entity.MoveTo(Configure.CoreBasePosition);
        }