2024-08-06 12:50:35 +08:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace nadena.dev.modular_avatar.core.editor
|
2024-08-05 10:31:43 +08:00
|
|
|
|
{
|
2024-08-06 12:50:35 +08:00
|
|
|
|
internal class ControlCondition
|
2024-08-05 10:31:43 +08:00
|
|
|
|
{
|
|
|
|
|
public string Parameter, DebugName;
|
|
|
|
|
public bool IsConstant;
|
|
|
|
|
public float ParameterValueLo, ParameterValueHi, InitialValue;
|
|
|
|
|
public bool InitiallyActive => InitialValue > ParameterValueLo && InitialValue < ParameterValueHi;
|
2024-08-06 12:50:35 +08:00
|
|
|
|
public bool IsConstantActive => InitiallyActive && IsConstant;
|
|
|
|
|
|
|
|
|
|
public GameObject ReferenceObject;
|
2024-08-05 10:31:43 +08:00
|
|
|
|
}
|
|
|
|
|
}
|