This repository has been archived on 2025-06-25. You can view files and clone it, but cannot push or open issues or pull requests.
Net.Like.Xue.Tokyo/Assets/Plugins/Character Controller Pro/Utilities/Scripts/BooleanButtonAttribute.cs

23 lines
647 B
C#

using UnityEngine;
namespace Lightbug.Utilities
{
[System.AttributeUsage(System.AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class BooleanButtonAttribute : PropertyAttribute
{
public string Label = null;
public string FalseLabel;
public string TrueLabel;
public bool FalseLabelFirst;
public BooleanButtonAttribute(string label, string falseLabel, string trueLabel, bool falseLabelFirst)
{
Label = label;
FalseLabelFirst = falseLabelFirst;
FalseLabel = falseLabel;
TrueLabel = trueLabel;
}
}
}