mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
parent
1d3d3f8607
commit
7992efc98d
@ -138,7 +138,7 @@ namespace UnityAtoms
|
||||
_value = RunPreChangeTransformers(_value);
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
protected virtual void OnEnable()
|
||||
{
|
||||
SetInitialValues();
|
||||
TriggerInitialEvents();
|
||||
|
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Transactions;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.SceneManagement;
|
||||
@ -64,8 +65,10 @@ namespace UnityAtoms.FSM
|
||||
/// </summary>
|
||||
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)
|
||||
{
|
||||
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