private SetOptions ( AnimBool animBool, bool initialize, bool targetValue ) : void | ||
animBool | AnimBool | |
initialize | bool | |
targetValue | bool | |
리턴 | void |
private void SetOptions(AnimBool animBool, bool initialize, bool targetValue)
{
if (initialize)
{
animBool.value = targetValue;
animBool.valueChanged.AddListener(new UnityAction(this.Repaint));
}
else
{
animBool.target = targetValue;
}
}