959e80cf72
assets upload description.
31 lines
632 B
C#
31 lines
632 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using RPGCreationKit;
|
|
using RPGCreationKit.BehaviourTree;
|
|
|
|
namespace RPGCreationKit.BehaviourTree.Data
|
|
{
|
|
[System.Serializable]
|
|
public class BT_Float : BTVariable
|
|
{
|
|
[SerializeField] public float value;
|
|
|
|
public override object GetValue()
|
|
{
|
|
return value;
|
|
}
|
|
|
|
public override void SetValue(object _obj)
|
|
{
|
|
value = (float)_obj;
|
|
}
|
|
|
|
public override void SetDefaultValue()
|
|
{
|
|
base.SetDefaultValue();
|
|
value = 0.0f;
|
|
}
|
|
|
|
}
|
|
} |