Ejemplo n.º 1
0
        //---------------------------------------------------------------------------------------------
        #region ZoneEvents

        protected virtual void Actor_OnTransportScene(InstancePlayer player, InstanceFlag flag, int nextSceneID, string nextScenePosition)
        {
            this.remote_logic?.Invoke(new RoleNeedTransportNotify()
            {
                fromAreaName     = service.SelfAddress.ServiceName,
                fromAreaNode     = service.SelfAddress.ServiceNode,
                nextZoneID       = nextSceneID,
                nextMapID        = nextSceneID,
                nextZoneFlagName = nextScenePosition,
            });
        }
Ejemplo n.º 2
0
 protected virtual void Actor_OnCrossScene(InstancePlayer player, int nextSceneID)
 {
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Awake()
 {
     instancePlayer = GetComponent <InstancePlayer>();
     timeScript     = GetComponent <TimeScript>();
 }
Ejemplo n.º 4
0
        /// <summary>
        /// 生成奖励.
        /// </summary>
        /// <param name="zone"></param>
        /// <param name="obj"></param>
        /// <param name="attacker"></param>
        /// <returns></returns>
        protected virtual RoleBattleAwardNotify GetRoleBattleAward(InstanceZone zone, InstanceUnit obj, InstancePlayer attacker)
        {
            RoleBattleAwardNotify ret = new RoleBattleAwardNotify();

            ret.MonsterID = obj.Info.ID;
            ret.RoleID    = attacker.PlayerUUID;
            return(ret);
        }