1
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
|
||||
namespace Assets.MyGame.Scripts.Net.WebResponses
|
||||
{
|
||||
/// <summary>
|
||||
/// 鱼雷使用结果(FishGameHub.TorpedoResultNotice,房间广播)。
|
||||
/// 玩家使用鱼雷成功后服务端向房间内所有人广播:
|
||||
/// { userId, propNumber, gold, color }。
|
||||
/// 客户端处理:按 color 播放鱼雷爆炸特效、按 gold 播放红包爆奖(随机炸死场上小鱼+爆金币)。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class TorpedoResultNotice
|
||||
{
|
||||
/// <summary>使用鱼雷的玩家 ID</summary>
|
||||
public string userId;
|
||||
|
||||
/// <summary>鱼雷编号(如 "50001",与 gameConfig.propConfig 的 number 对应)</summary>
|
||||
public string propNumber;
|
||||
|
||||
/// <summary>本次获得的金币数</summary>
|
||||
public long gold;
|
||||
|
||||
/// <summary>鱼雷颜色(十六进制色值如 "#ff0000",用于渲染爆炸特效)</summary>
|
||||
public string color;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6eebbdcf0d803244dab808623b048c1c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user