|
|
@@ -111,6 +111,9 @@ public class PKGameMode_OnlinePK : GameMode {
|
|
|
if (key == "score") {
|
|
|
HitTargetNumber.Create(float.Parse(data));
|
|
|
}
|
|
|
+ if (key == "shootSpeed") {
|
|
|
+ Billboard.ins?.SetShootSpeedText(data);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void AutoSwitchBanUserControlBow() {
|
|
|
@@ -173,6 +176,7 @@ public class PKGameMode_OnlinePK : GameMode {
|
|
|
}
|
|
|
}
|
|
|
string scoreWillSend = null;
|
|
|
+ public string shootSpeedWillSend = null;
|
|
|
void upload2() {
|
|
|
uploadGameDataTime -= Time.deltaTime;
|
|
|
if (uploadGameDataTime <= 0) {
|
|
|
@@ -189,6 +193,10 @@ public class PKGameMode_OnlinePK : GameMode {
|
|
|
socketPlayer.UploadPKGameData("score", scoreWillSend);
|
|
|
scoreWillSend = null;
|
|
|
}
|
|
|
+ if (shootSpeedWillSend != null) {
|
|
|
+ socketPlayer.UploadPKGameData("shootSpeed", shootSpeedWillSend);
|
|
|
+ shootSpeedWillSend = null;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|