1
This commit is contained in:
20
Unity/Scripts/Utility/AnimatorUtils.cs
Normal file
20
Unity/Scripts/Utility/AnimatorUtils.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
namespace BITKit
|
||||
{
|
||||
public struct AnimatorParameter
|
||||
{
|
||||
public AnimatorControllerParameterType type;
|
||||
public string name;
|
||||
public object value;
|
||||
public T Get<T>()
|
||||
{
|
||||
if (value is T t)
|
||||
{
|
||||
return t;
|
||||
}
|
||||
return default;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user