40 lines
633 B
C#
40 lines
633 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using BITKit.Game;
|
|
using BITKit.StateMachine;
|
|
using UnityEngine;
|
|
|
|
namespace BITFALL.Game
|
|
{
|
|
public abstract class GameState:IGameState
|
|
{
|
|
bool IState.Enabled { get; set; }
|
|
public virtual void Initialize()
|
|
{
|
|
}
|
|
|
|
public virtual void OnStateEntry(IState old)
|
|
{
|
|
}
|
|
|
|
public virtual void OnStateUpdate(float deltaTime)
|
|
{
|
|
}
|
|
|
|
public virtual void OnStateExit(IState old, IState newState)
|
|
{
|
|
}
|
|
}
|
|
[Serializable]
|
|
public sealed class GameInMenuState : GameState
|
|
{
|
|
|
|
}
|
|
[Serializable]
|
|
public sealed class GameInPlayState : GameState
|
|
{
|
|
|
|
}
|
|
|
|
} |