update core

This commit is contained in:
2024-10-25 15:35:39 +08:00
parent ba9f401013
commit 2bfcd95f09
22 changed files with 5192 additions and 406 deletions

View File

@@ -3,8 +3,10 @@ using System.Collections.Generic;
using Coffee.UIEffects;
using Cysharp.Threading.Tasks;
using Framework.Timer;
using Framework.UI;
using Game;
using Game.Component;
using Game.EventDefine;
using UnityEngine;
using UnityEngine.UI;
using IcecreamView;
@@ -27,9 +29,12 @@ namespace Views{
public ObjectShake Shake;
public Button nextBtn;
public override async void OnOpenView(IC_ViewData parameters)
{
this.nextBtn.gameObject.SetActive (false);
var index = parameters.GetValue<int> ();
this.lastFragment.SetActive (false);
this.redPoint.SetActive (false);
@@ -56,7 +61,27 @@ namespace Views{
{
}
// #if UNITY_EDITOR
public override void OnInitView ()
{
this.nextBtn.onClick.AddListener (() =>
{
UIManager.Instance.OpenLoading (() =>
{
this.ViewConnector.CloseView ();
if (RoomManager.Instance.PartIndex < 3)
{
RoomManager.Instance.PartIndex++;
GameEventDefine.ChangeGameFsm.SendMessage (GameState.StartGame);
}
else
{
//播放结尾gc动画
}
});
});
}
// #if UNITY_EDITOR
// private bool tempLock;
// private async void Update ()
// {
@@ -133,6 +158,7 @@ namespace Views{
CameraImpulseUtils.Instance.UniformImpulseCamera (0.5f , 4);
GameManager.Instance.Vibrator (VibratorScale.Normal);
}
this.nextBtn.gameObject.SetActive (true);
}
private async UniTask AnimOpen (UIDissolve[] effects , GameObject point)