Ejemplo n.º 1
0
        /// <summary>
        /// 目标完成
        /// </summary>
        public override bool OnFinish(InstanceMap instance)
        {
            if (null == instance || null == instance.Owner)
            {
                return(false);
            }

            instance.Owner.RemoveEventListener(EventType.CollectItem, instance, __InstanceGatherItem_Listener);
            return(true);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 目标完成
        /// </summary>
        public override bool OnFinish(InstanceMap instance)
        {
            if (null == instance || null == instance.Owner)
            {
                return(false);
            }

            instance.Owner.RemoveEventListener(EventType.Kill, instance, __InstanceKillMonster_Listener);
            return(true);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 初始化
        /// </summary>
        public override bool OnInit(InstanceMap instance)
        {
            if (null == instance || null == instance.Owner)
            {
                return(false);
            }
            //yzb
            instance.Owner.AddEventListener(EventType.Kill, instance, __InstanceKillMonster_Listener);

            return(true);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 初始化
        /// </summary>
        public override bool OnInit(InstanceMap instance)
        {
            if (null == instance || null == instance.Owner)
            {
                return(false);
            }

            instance.Owner.AddEventListener(EventType.Kill, instance, __InstanceProtectTarget_Listener);

            return(true);
        }
Ejemplo n.º 5
0
 /// <summary>
 /// 目标完成
 /// </summary>
 public virtual bool OnFinish(InstanceMap instance)
 {
     return(true);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 初始化
 /// </summary>
 public virtual bool OnInit(InstanceMap instance)
 {
     return(true);
 }