20 lines
415 B
C#
20 lines
415 B
C#
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;
|
|
}
|
|
}
|
|
} |