mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 09:08:23 -05:00
24 lines
568 B
C#
24 lines
568 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityAtoms.BaseAtoms;
|
|
|
|
namespace UnityAtoms.FSM
|
|
{
|
|
[Serializable]
|
|
public struct FSMState
|
|
{
|
|
public string Id { get => _id.Value; }
|
|
public FiniteStateMachine SubMachine { get => _subMachine; }
|
|
public float Timer { get; set; }
|
|
public float Duration { get => _duration.Value; }
|
|
|
|
[SerializeField]
|
|
private StringReference _id;
|
|
|
|
[SerializeField]
|
|
private FloatReference _duration;
|
|
|
|
[SerializeField]
|
|
private FiniteStateMachine _subMachine;
|
|
}
|
|
} |