//--------------------------------------------------------------------------------------------- #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, }); }
protected virtual void Actor_OnCrossScene(InstancePlayer player, int nextSceneID) { }
// Use this for initialization void Awake() { instancePlayer = GetComponent <InstancePlayer>(); timeScript = GetComponent <TimeScript>(); }
/// <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); }