22 lines
328 B
C#
22 lines
328 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace DebuggingEssentials
|
|
{
|
|
[Serializable]
|
|
public class CountIcon
|
|
{
|
|
public Texture texOn;
|
|
|
|
public Texture texOff;
|
|
|
|
[NonSerialized]
|
|
public int count;
|
|
|
|
public GUIContent GetGUIContent()
|
|
{
|
|
return Helper.GetGUIContent(count.ToString(), (count > 0) ? texOn : texOff);
|
|
}
|
|
}
|
|
}
|