You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lanlib/Scripts/Runtime/Singleton/SingletonAutoLoadAttribute.cs

18 lines
492 B
C#

10 months ago
using System;
namespace LanLib.Singleton
{
public class SingletonAutoLoadAttribute : Attribute
{
public Type type { get; private set; }
public SingletonCreateCondition createCondition { get; private set; }
public SingletonAutoLoadAttribute(Type type,
SingletonCreateCondition createCondition = SingletonCreateCondition.ReloadDomain)
{
this.type = type;
this.createCondition = createCondition;
}
}
}