You've already forked taptap2024_GJ_chidouren
update core
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user