This commit is contained in:
2026-04-26 20:29:22 +08:00
parent d99d0420f5
commit 981d5e93ed
19 changed files with 3323 additions and 15678 deletions
@@ -24,10 +24,11 @@ public class MonsterControl_BossBase : MonsterContral
public int prizeCount;//奖励数量
public Action JiaFen;
public List<List<RedPacketRecord>> redPacketRecords = new List<List<RedPacketRecord>>();
public Camera ZhuCam;
public override void Awake()
{
base.Awake();
ZhuCam = GameManager.Instance.ZhuCam;
}
public void BigPrize(int min = 2, int max = 4)
{
@@ -194,9 +195,10 @@ public class MonsterControl_BossBase : MonsterContral
GameManager.Instance.StartCoroutine(yanchidie());
}
public float dieTime = 3f;
IEnumerator yanchidie()
{
yield return new WaitForSeconds(3f);
yield return new WaitForSeconds(dieTime);
tMP_CurrBossScore.transform.parent.DOMove(CreateFishManager.Instance.currGameType.currSitData.tMP_GoldNum.transform.position, 0.5f).OnComplete(() =>
{
@@ -425,14 +425,14 @@ public class CreateFishManager : MonoSingleton<CreateFishManager>
{
list.Add(item);
}
list[Random.Range(0, list.Count)].isCreate = 2;
//foreach (var item in list)
//{
// if (item.fishNumber == 13028.ToString())
// {
// item.isCreate = 2;
// }
//}
//list[Random.Range(0, list.Count)].isCreate = 2;
foreach (var item in list)
{
if (item.fishNumber == 13035.ToString())
{
item.isCreate = 2;
}
}
}
boss = 25;
}
+18 -16
View File
@@ -17,22 +17,24 @@ public class GameManager : MonoSingleton<GameManager>
public GameData gameData = new GameData();
public Scene scene;
public CameraShaker cameraShake;
// // 指定此方法在加载时立即调用,在显示启动动画前之前执行
// [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
// private static void BeforeSplashScreen()
// {
// //平台适配
//#if UNITY_WEBGL
// // 如果在 WebGL 平台上运行,立即停止启动动画
// SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
//#else
// // 如果不是在 WebGL 平台上,启动一个异步任务来停止启动动画
// System.Threading.Tasks.Task.Run(() =>
// {
// SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
// });
//#endif
// }
public Camera ZhuCam;
// // 指定此方法在加载时立即调用,在显示启动动画前之前执行
// [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
// private static void BeforeSplashScreen()
// {
// //平台适配
//#if UNITY_WEBGL
// // 如果在 WebGL 平台上运行,立即停止启动动画
// SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
//#else
// // 如果不是在 WebGL 平台上,启动一个异步任务来停止启动动画
// System.Threading.Tasks.Task.Run(() =>
// {
// SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
// });
//#endif
// }
public void UpdataUserData(UserData user)
{
this.user = user;