27 lines
443 B
C#
27 lines
443 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace UltimateWater.Utils
|
|
{
|
|
[AttributeUsage(AttributeTargets.Field)]
|
|
public class InspectorWarningAttribute : PropertyAttribute
|
|
{
|
|
public enum InfoType
|
|
{
|
|
Note = 0,
|
|
Warning = 1,
|
|
Error = 2
|
|
}
|
|
|
|
public readonly string MethodName;
|
|
|
|
public readonly InfoType Type;
|
|
|
|
public InspectorWarningAttribute(string methodName, InfoType type)
|
|
{
|
|
MethodName = methodName;
|
|
Type = type;
|
|
}
|
|
}
|
|
}
|