长通知和切换场景保留消息

This commit is contained in:
Caiyanpeng committed 2022-01-24 15:41:04 +08:00
1 parent 7bb5bafbd2
commit cd162f3325
17 files changed
+1341 -99

No files matched your search

@@ -99,7 +99,7 @@ namespace Assets.Scenes.Ride.Scripts
this.routeId = routeId;
this.content = content;
}
public LinkedMessageEvent(int routeId, string content,string avatar,string nickname,string routeName)
public LinkedMessageEvent(int routeId, string content, string avatar, string nickname, string routeName)
{
this.routeId = routeId;
this.content = content;
@@ -107,6 +107,14 @@ namespace Assets.Scenes.Ride.Scripts
this.nickname = nickname;
this.routeName = routeName;
}
public LinkedMessageEvent(LinkedMessageEvent data)
{
this.routeId = data.routeId;
this.content = data.content;
this.avatar = data.avatar;
this.nickname = data.nickname;
this.routeName = data.routeName;
}
private void CreateContent()
{