Switched from UnityEvent to System.Action
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
using UnityEngine.Events;
|
||||
using System;
|
||||
|
||||
namespace Syntriax.Modules.Movement.State
|
||||
{
|
||||
public interface IToggleState
|
||||
{
|
||||
bool Toggled { get; set; }
|
||||
UnityEvent<bool> OnToggleStateChanged { get; }
|
||||
Action<bool> OnToggleStateChanged { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
using UnityEngine.Events;
|
||||
using System;
|
||||
|
||||
namespace Syntriax.Modules.Movement.State
|
||||
{
|
||||
@@ -20,6 +20,6 @@ namespace Syntriax.Modules.Movement.State
|
||||
}
|
||||
}
|
||||
|
||||
public UnityEvent<bool> OnToggleStateChanged { get; protected set; } = new UnityEvent<bool>();
|
||||
public Action<bool> OnToggleStateChanged { get; set; } = null;
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace Syntriax.Modules.Movement.State
|
||||
{
|
||||
@@ -20,6 +20,6 @@ namespace Syntriax.Modules.Movement.State
|
||||
}
|
||||
}
|
||||
|
||||
public UnityEvent<bool> OnToggleStateChanged { get; protected set; } = new UnityEvent<bool>();
|
||||
public Action<bool> OnToggleStateChanged { get; set; } = null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user