update core

This commit is contained in:
2024-10-24 22:16:39 +08:00
parent 249705c952
commit 2181e42066
9 changed files with 1042 additions and 12471 deletions

View File

@@ -1,11 +1,14 @@
using System.Collections.Generic;
using System.StateSystem;
using Framework.UI;
using Game;
using Game.Component;
using UnityEngine;
using UnityEngine.UI;
using IcecreamView;
using Script.Core.Utils.Extend;
using StateSystem;
using UnityEngine.Playables;
namespace Views{
@@ -14,12 +17,14 @@ namespace Views{
public Button _toGame;
public Button _settingGame;
public Button _aboutGame;
private PlayableDirector _playableDirector;
public override void OnOpenView(IC_ViewData parameters)
{
this._playableDirector = parameters.GetValue<PlayableDirector>();
MapContent.Instance.Pathfinder.Scan ();
MapContent.Instance.IsActiveGame = true;
}
public override void OnCloseView()
@@ -62,15 +67,24 @@ namespace Views{
private void OnClickToGame()
{
// UIManager.Instance.OpenView (UIPanel.SuccessPanel);
// return;
this._toGame.gameObject.SetActive(false);
this._aboutGame.gameObject.SetActive(false);
this._settingGame.gameObject.SetActive(false);
this._playableDirector.stopped += ToGaming;
this._playableDirector.initialTime = 0;
this._playableDirector.Play ();
}
private void ToGaming (PlayableDirector playableDirector)
{
UIManager.Instance.OpenLoading (() =>
{
this.ViewConnector.CloseView ();
GameStateManager.Instance.OpenState (GameGlobalState.GameRoom);
});
}
private void OnClickSettingGame()
{
UIManager.Instance.OpenView (UIPanel.SettingPanel);