update space shooter

This commit is contained in:
hevinci
2023-03-11 00:45:58 +08:00
parent ff8f8623d9
commit 20061983d6
34 changed files with 104 additions and 104 deletions
@@ -4,7 +4,7 @@ using UnityEngine;
using UniFramework.Pooling;
using UniFramework.Window;
using UniFramework.Machine;
using UniFramework.Module;
using UniFramework.Singleton;
using YooAsset;
internal class FsmInitGame : IStateNode
@@ -17,7 +17,7 @@ internal class FsmInitGame : IStateNode
}
void IStateNode.OnEnter()
{
UniModule.StartCoroutine(Prepare());
UniSingleton.StartCoroutine(Prepare());
}
void IStateNode.OnUpdate()
{
@@ -5,7 +5,7 @@ using UnityEngine;
using UniFramework.Window;
using UniFramework.Event;
using UniFramework.Machine;
using UniFramework.Module;
using UniFramework.Singleton;
using YooAsset;
internal class FsmSceneBattle : IStateNode
@@ -17,7 +17,7 @@ internal class FsmSceneBattle : IStateNode
}
void IStateNode.OnEnter()
{
UniModule.StartCoroutine(Prepare());
UniSingleton.StartCoroutine(Prepare());
}
void IStateNode.OnUpdate()
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using UnityEngine;
using UniFramework.Machine;
using UniFramework.Window;
using UniFramework.Module;
using UniFramework.Singleton;
using YooAsset;
internal class FsmSceneHome : IStateNode
@@ -16,7 +16,7 @@ internal class FsmSceneHome : IStateNode
}
void IStateNode.OnEnter()
{
UniModule.StartCoroutine(Prepare());
UniSingleton.StartCoroutine(Prepare());
}
void IStateNode.OnUpdate()
{
@@ -3,22 +3,22 @@ using System.Collections.Generic;
using UnityEngine;
using UniFramework.Event;
using UniFramework.Machine;
using UniFramework.Module;
using UniFramework.Singleton;
public class GameManager : ModuleSingleton<GameManager>, IModule
public class GameManager : SingletonInstance<GameManager>, ISingleton
{
private bool _isRun = false;
private EventGroup _eventGroup = new EventGroup();
private StateMachine _machine;
void IModule.OnCreate(object createParam)
void ISingleton.OnCreate(object createParam)
{
}
void IModule.OnDestroy()
void ISingleton.OnDestroy()
{
_eventGroup.RemoveAllListener();
}
void IModule.OnUpdate()
void ISingleton.OnUpdate()
{
if (_machine != null)
_machine.Update();