mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
parent
1d3d3f8607
commit
7992efc98d
@ -138,7 +138,7 @@ namespace UnityAtoms
|
|||||||
_value = RunPreChangeTransformers(_value);
|
_value = RunPreChangeTransformers(_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnEnable()
|
protected virtual void OnEnable()
|
||||||
{
|
{
|
||||||
SetInitialValues();
|
SetInitialValues();
|
||||||
TriggerInitialEvents();
|
TriggerInitialEvents();
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Transactions;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Events;
|
using UnityEngine.Events;
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
@ -64,8 +65,10 @@ namespace UnityAtoms.FSM
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private string _currentFlatValue;
|
private string _currentFlatValue;
|
||||||
|
|
||||||
private void OnEnable()
|
protected override void OnEnable()
|
||||||
{
|
{
|
||||||
|
base.OnEnable(); // handles resetting and initial values and all that.
|
||||||
|
|
||||||
if (CompleteCurrentTransition != null && CompleteCurrentTransition.ReplayBufferSize > 0)
|
if (CompleteCurrentTransition != null && CompleteCurrentTransition.ReplayBufferSize > 0)
|
||||||
{
|
{
|
||||||
Debug.LogWarning("The Complete Current Transition event had a replay buffer size great than 0, which would cause unwanted behaviour. Setting it to 0 in order to avoid unexpected behaviour.");
|
Debug.LogWarning("The Complete Current Transition event had a replay buffer size great than 0, which would cause unwanted behaviour. Setting it to 0 in order to avoid unexpected behaviour.");
|
||||||
|
Loading…
Reference in New Issue
Block a user