update core

This commit is contained in:
2024-10-27 23:12:02 +08:00
parent a03edb3cc6
commit b96ee5bd06
25 changed files with 434 additions and 5500 deletions

View File

@@ -1,5 +1,7 @@
using System;
using System.Collections.Generic;
using System.StateSystem;
using Cysharp.Threading.Tasks;
using Framework.Audio;
using Framework.UI;
using Game;
@@ -24,11 +26,25 @@ namespace Views{
private PlayableDirector _playableDirector;
public override void OnOpenView(IC_ViewData parameters)
public override async void OnOpenView(IC_ViewData parameters)
{
_toGame.gameObject.SetActive (false);
string key = "CompleteCount";
await UniTask.Delay (1000);
if (!PlayerPrefs.HasKey ("toApp") && PlayerPrefs.GetInt (key , 0) > 0)
{
//提醒玩家评论
UIManager.Instance.OpenTip ("本项目由" + "Taptap聚光灯挑战赛@2024".ToColorString (new Color (1f, 0.38f, 0f)) + "活动在规定的21天时间完成制作\n你的评价将是对我们最大的支持点击确认查看游戏详情页!" ,
() =>
{
PlayerPrefs.SetInt ("toApp" , 1);
LaunchAppUtils.ToTapTapTargetApp(GameGlobalConfig.Instance.TapUrl);
} , () => { });
}
this._playableDirector = parameters.GetValue<PlayableDirector>();
MapContent.Instance.Pathfinder.Scan ();
MapContent.Instance.IsActiveGame = true;
this._toGame.gameObject.SetActive (true);
}
public override void OnCloseView()