示例#1
0
        public override void Init(Creature creature)
        {
            base.Init(creature);

            MoveController = new NpcMoveController(Npc);
            BattleController = new NpcBattleController(Npc);
        }
示例#2
0
        public override void Release()
        {
            base.Release();
            Projectile = null;

            if (MoveController != null)
                MoveController.Release();
            MoveController = null;
        }
示例#3
0
        public override void Release()
        {
            base.Release();

            if (MoveController != null)
                MoveController.Release();
            MoveController = null;

            if (BattleController != null)
                BattleController.Release();
            BattleController = null;
        }
示例#4
0
        public override void Init(Creature creature)
        {
            base.Init(creature);

            Projectile = (Projectile) creature;

            if (Projectile.TargetPosition != null)
            {
                MoveController = new NpcMoveController(creature);
                MoveController.MoveTo(Projectile.TargetPosition);
            }

            DieUts = Funcs.GetCurrentMilliseconds() + Projectile.Lifetime;
        }