You've already forked taptap2024_GJ_chidouren
增加boss 出场cg
This commit is contained in:
17
Assets/Scripts/Game/Component/AnimatorStateUpdate.cs
Normal file
17
Assets/Scripts/Game/Component/AnimatorStateUpdate.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Game.Component
|
||||
{
|
||||
public class AnimatorStateUpdate : MonoBehaviour
|
||||
{
|
||||
public Animator Animator;
|
||||
public string stateName = "state";
|
||||
public int state;
|
||||
|
||||
private void Update ()
|
||||
{
|
||||
this.Animator.SetInteger (this.stateName , this.state);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 811b7250fe3c47af948b28ad91ee042d
|
||||
timeCreated: 1729872108
|
||||
@@ -37,7 +37,7 @@ namespace System
|
||||
{
|
||||
if (stateChange == PlayModeStateChange.EnteredPlayMode)
|
||||
{
|
||||
GameStateManager.Instance.Active(StateSystem.GameGlobalState.GameBegin);
|
||||
// GameStateManager.Instance.Active(StateSystem.GameGlobalState.GameBegin);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ using Game.Component;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using IcecreamView;
|
||||
using MintAnimation.Runtime.Components.MintAnimation;
|
||||
using Script.Core.Utils.Extend;
|
||||
using StateSystem;
|
||||
using UnityEngine.Playables;
|
||||
@@ -14,9 +15,10 @@ namespace Views{
|
||||
|
||||
public class HomePanel : IcecreamView.IC_AbstractModule
|
||||
{
|
||||
public Button _toGame;
|
||||
public Button _settingGame;
|
||||
public Button _aboutGame;
|
||||
public Button _toGame;
|
||||
public Button _settingGame;
|
||||
public Button _aboutGame;
|
||||
public MintAnimBase _MintAnim;
|
||||
|
||||
private PlayableDirector _playableDirector;
|
||||
|
||||
@@ -70,6 +72,9 @@ namespace Views{
|
||||
this._toGame.gameObject.SetActive(false);
|
||||
this._aboutGame.gameObject.SetActive(false);
|
||||
this._settingGame.gameObject.SetActive(false);
|
||||
var mintPlayerBase = this._MintAnim.MintAnimation ();
|
||||
mintPlayerBase.TweenOptions.IsFlip = true;
|
||||
this._MintAnim.StartAnim();
|
||||
this._playableDirector.stopped += ToGaming;
|
||||
this._playableDirector.initialTime = 0;
|
||||
this._playableDirector.Play ();
|
||||
|
||||
Reference in New Issue
Block a user