This commit is contained in:
2026-08-25 17:00:03 +08:00
parent 550abb0530
commit 9d41d8959c
38 changed files with 37222 additions and 959 deletions
File diff suppressed because it is too large Load Diff
@@ -11,7 +11,7 @@ PrefabInstance:
- target: {fileID: 236781439713602893, guid: a96966a1d55149a4f83724f224013303,
type: 3}
propertyPath: m_Name
value: UI_baojiang Variant
value: UI_baojiang Variant 11
objectReference: {fileID: 0}
- target: {fileID: 685976588209175045, guid: a96966a1d55149a4f83724f224013303,
type: 3}
@@ -113,6 +113,47 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2278261232015200288, guid: a96966a1d55149a4f83724f224013303,
type: 3}
propertyPath: m_Sprite
value:
objectReference: {fileID: 1382476545, guid: 68e4fec764425b4438eb6a06c7b99c16,
type: 3}
- target: {fileID: 4213903445032130685, guid: a96966a1d55149a4f83724f224013303,
type: 3}
propertyPath: m_SizeDelta.x
value: 409
objectReference: {fileID: 0}
- target: {fileID: 4213903445032130685, guid: a96966a1d55149a4f83724f224013303,
type: 3}
propertyPath: m_SizeDelta.y
value: 362
objectReference: {fileID: 0}
- target: {fileID: 4213903445032130685, guid: a96966a1d55149a4f83724f224013303,
type: 3}
propertyPath: m_LocalScale.x
value: 2.4571457
objectReference: {fileID: 0}
- target: {fileID: 4213903445032130685, guid: a96966a1d55149a4f83724f224013303,
type: 3}
propertyPath: m_LocalScale.y
value: 2.4571457
objectReference: {fileID: 0}
- target: {fileID: 4213903445032130685, guid: a96966a1d55149a4f83724f224013303,
type: 3}
propertyPath: m_LocalScale.z
value: 2.4571457
objectReference: {fileID: 0}
- target: {fileID: 4213903445032130685, guid: a96966a1d55149a4f83724f224013303,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 187
objectReference: {fileID: 0}
- target: {fileID: 5627438144398829183, guid: a96966a1d55149a4f83724f224013303,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 57
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
@@ -389,6 +389,11 @@ PrefabInstance:
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
- target: {fileID: 379126248502062263, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Materials.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 382166566655118943, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Layer
@@ -569,6 +574,11 @@ PrefabInstance:
propertyPath: m_CameraType
value: 1
objectReference: {fileID: 0}
- target: {fileID: 525548491846897642, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Cameras.Array.data[0]
value:
objectReference: {fileID: 0}
- target: {fileID: 540125697817762176, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Layer
@@ -1029,6 +1039,26 @@ PrefabInstance:
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
- target: {fileID: 996827115168116845, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_LocalScale.x
value: 0.57573
objectReference: {fileID: 0}
- target: {fileID: 996827115168116845, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_LocalScale.y
value: 0.57573
objectReference: {fileID: 0}
- target: {fileID: 996827115168116845, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_LocalScale.z
value: 0.57573
objectReference: {fileID: 0}
- target: {fileID: 996827115168116845, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -196
objectReference: {fileID: 0}
- target: {fileID: 1022580576595458614, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Layer
@@ -1569,6 +1599,11 @@ PrefabInstance:
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
- target: {fileID: 1616529466361573926, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Materials.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1617999741242864708, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Layer
@@ -2149,6 +2184,11 @@ PrefabInstance:
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
- target: {fileID: 2254921762212415446, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Materials.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2257518857203193454, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Layer
@@ -2454,6 +2494,13 @@ PrefabInstance:
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
- target: {fileID: 2556330014068817200, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Text
value: '0
'
objectReference: {fileID: 0}
- target: {fileID: 2563376223232226630, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Layer
@@ -3074,6 +3121,11 @@ PrefabInstance:
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
- target: {fileID: 3176689674441173048, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Materials.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3177881390038665807, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Layer
@@ -3579,6 +3631,16 @@ PrefabInstance:
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
- target: {fileID: 3723498385785770372, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Camera
value:
objectReference: {fileID: 0}
- target: {fileID: 3723498385785770372, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_RenderMode
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3728207616727719142, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Layer
@@ -4039,6 +4101,11 @@ PrefabInstance:
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
- target: {fileID: 4255237705891793641, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Text
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4258094794848491743, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Layer
@@ -4967,7 +5034,7 @@ PrefabInstance:
- target: {fileID: 5186487561967134582, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_SceneBindings.Array.size
value: 130
value: 131
objectReference: {fileID: 0}
- target: {fileID: 5186487561967134582, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
@@ -4975,11 +5042,32 @@ PrefabInstance:
value:
objectReference: {fileID: -760641521262685956, guid: b7022a406ed33364a9472f48f810613d,
type: 2}
- target: {fileID: 5186487561967134582, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_SceneBindings.Array.data[130].key
value:
objectReference: {fileID: 3085258149069188875, guid: b7022a406ed33364a9472f48f810613d,
type: 2}
- target: {fileID: 5186487561967134582, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_SceneBindings.Array.data[51].value
value:
objectReference: {fileID: 0}
- target: {fileID: 5186487561967134582, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_SceneBindings.Array.data[52].value
value:
objectReference: {fileID: 0}
- target: {fileID: 5186487561967134582, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_SceneBindings.Array.data[129].value
value:
objectReference: {fileID: 2340603695250713183}
- target: {fileID: 5186487561967134582, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_SceneBindings.Array.data[130].value
value:
objectReference: {fileID: 2340603695250713183}
- target: {fileID: 5188237073840967179, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Layer
@@ -7310,6 +7398,11 @@ PrefabInstance:
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
- target: {fileID: 7582398638380746684, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Materials.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7583700472388719241, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
propertyPath: m_Layer
@@ -8945,8 +9038,10 @@ PrefabInstance:
propertyPath: m_Layer
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_RemovedComponents:
- {fileID: 7536957704397581944, guid: 0fb8f3919645bc946bca0af33bdeea70, type: 3}
m_RemovedGameObjects:
- {fileID: 5913711462721051940, guid: 0fb8f3919645bc946bca0af33bdeea70, type: 3}
m_AddedGameObjects: []
m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: 7809136537568563505, guid: 0fb8f3919645bc946bca0af33bdeea70,
@@ -8956,35 +9051,36 @@ PrefabInstance:
- targetCorrespondingSourceObject: {fileID: 7809136537568563505, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
insertIndex: -1
addedObject: {fileID: 5701218462178600437}
addedObject: {fileID: 1297200843122526064}
- targetCorrespondingSourceObject: {fileID: 5961365692131798004, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
insertIndex: -1
addedObject: {fileID: 3015299140943083813}
- targetCorrespondingSourceObject: {fileID: 5913711462721051940, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
insertIndex: -1
addedObject: {fileID: 6675481217668079699}
m_SourcePrefab: {fileID: 100100000, guid: 0fb8f3919645bc946bca0af33bdeea70, type: 3}
--- !u!1 &6872837279473255595 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 5913711462721051940, guid: 0fb8f3919645bc946bca0af33bdeea70,
--- !u!114 &3317297719290733759 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 2556330014068817200, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
m_PrefabInstance: {fileID: 968414836649367951}
m_PrefabAsset: {fileID: 0}
--- !u!114 &6675481217668079699
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6872837279473255595}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5e9b2b25f1e632c4599192fca059c35a, type: 3}
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &3926334085356802918 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 4255237705891793641, guid: 0fb8f3919645bc946bca0af33bdeea70,
type: 3}
m_PrefabInstance: {fileID: 968414836649367951}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
subCamera: {fileID: 0}
--- !u!1 &6902758921161896571 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 5961365692131798004, guid: 0fb8f3919645bc946bca0af33bdeea70,
@@ -9025,12 +9121,13 @@ MonoBehaviour:
m_Events:
m_Signals:
- {fileID: 11400000, guid: 27ead056a3555a449b1c33be851ca0c5, type: 2}
- {fileID: 11400000, guid: 344d1087c2077664ebcfebc51d6cf167, type: 2}
m_Events:
- m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 5701218462178600437}
m_TargetAssemblyTypeName: BJEventBase, Assembly-CSharp
m_MethodName: die
- m_Target: {fileID: 1297200843122526064}
m_TargetAssemblyTypeName: BJBeishuEvent, Assembly-CSharp
m_MethodName: EndBJ
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
@@ -9040,7 +9137,21 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!114 &5701218462178600437
- m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1297200843122526064}
m_TargetAssemblyTypeName: YangJianBJEvent, Assembly-CSharp
m_MethodName: BeiShuFX
m_Mode: 4
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!114 &1297200843122526064
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@@ -9049,34 +9160,46 @@ MonoBehaviour:
m_GameObject: {fileID: 7002851575860840638}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0755fb2d9204b8c44a2bc00b9e541ead, type: 3}
m_Script: {fileID: 11500000, guid: ed28682ecf74b754a925e7c47a40adb9, type: 3}
m_Name:
m_EditorClassIdentifier:
bjEndUI: {fileID: 4300126860111980404, guid: 7cff06c7e1bb34b4dbc840992a43ca22, type: 3}
useScorePanel: 1
tMP_Score: {fileID: 0}
scorePanelPrefab: {fileID: 2322849427427554443, guid: 7cff06c7e1bb34b4dbc840992a43ca22,
type: 3}
currScore: 0
maxScore: 0
scoreCount: 0
bjEndUIOffsetY: 150
posID: 0
paoBei: 0
fishScore: 0
bJbeishu: 0
maxScore: 0
startOffset: {x: 0, y: 0, z: -100}
isSelf: 0
isScoreEnd: 0
useScorePanel: 0
tMP_Score: {fileID: 0}
scorePanelPrefab: {fileID: 8000219247718126128, guid: ef9b30e91eece134c87c139b4acb87eb,
type: 3}
currScore: 0
scoreCount: 0
bigPrizeFishMode: 0
showDelay: 3
moveDuration: 0.5
moveEase: 6
startOffset: {x: 0, y: 0, z: -100}
bjEndUIOffsetY: 150
coinFlyDuration: 0.5
coinArrivalInterval: 0.1
showAddScoreFX: 1
isSelf: 0
autoFinishOnScoreFull: 1
totalBJCount: 0
currBJCount: 0
isEffEnd: 0
isScoreStart: 0
isScoreEnd: 0
isGoldEffectStart: 0
beishu: {fileID: 0}
beishu_UGUI: {fileID: 3926334085356802918}
beishunum: 0
chengshu: {fileID: 0}
chengshu_UGUI: {fileID: 0}
xiaoGuo_Effect: {fileID: 0}
xiaoGuo_UGUI: {fileID: 0}
beiShuRollDuration: 3
awardCount: 3
currCount: 0
text_BeiShu: {fileID: 3317297719290733759}
@@ -0,0 +1,57 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class YangJianBJEvent : BJBeishuEvent
{
[Header("爆奖次数(前端定义)")]
[Tooltip("总共爆 n 次,每次评分 = 总倍数 bJbeishu / 爆奖次数")]
public int awardCount = 1;
/// <summary>已触发的爆奖次数</summary>
public int currCount;
public Action jiafenEndAction;
/// <summary>最近一个阶段递增到的数值(供结算时作为递增起点,避免画面跳变)</summary>
private int _stageShown;
/// <summary>
/// 每次爆奖触发(awardCount 次调用):按"总倍数/次数"自增倍数。
/// 阶段性递增效果:每次从 0 滚到"每次自增 step",而非从旧累计值连续滚。
/// stageDuration 为单个阶段的滚动时长(0 用 beiShuRollDuration)。
/// </summary>
public void BeiShuFX(float stageDuration = 0f)
{
if (awardCount <= 0) awardCount = 1;
// 每次自增 = 总倍数 / 爆奖次数
int step = Mathf.CeilToInt((float)bJbeishu / awardCount);
beishunum += step;
SetFieldText(xiaoGuo_Effect, xiaoGuo_UGUI, step.ToString());
// 阶段性递增:从 0 → 每次自增 step(加参数控制每阶段滚动时长)
if (stageDuration <= 0f) stageDuration = beiShuRollDuration;
RollNumber(v => SetFieldText(beishu, beishu_UGUI, v.ToString()), 0, step, stageDuration, jiafenEndAction);
_stageShown = step;
currCount++;
}
/// <summary>时间轴/动画事件结束:从最后阶段值递增到服务端总倍数后统一结算</summary>
public void TimeLineEnd()
{
// 累计可能因整除有余数而与总倍数不一致,从最后阶段值递增到总倍数后再结算
int from = _stageShown;
beishunum = bJbeishu;
RollNumber(v => SetFieldText(beishu, beishu_UGUI, v.ToString()), from, bJbeishu, beiShuRollDuration, () => EndBJ());
}
public Text text_BeiShu;
private void Awake()
{
jiafenEndAction = () =>
{
text_BeiShu.text=beishunum.ToString();
};
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ed28682ecf74b754a925e7c47a40adb9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: