18 lines
397 B
C#
18 lines
397 B
C#
using UnityEngine;
|
|
|
|
namespace SK.Framework
|
|
{
|
|
public static class BehaviourExtension
|
|
{
|
|
public static T Enable<T>(this T self) where T : Behaviour
|
|
{
|
|
self.enabled = true;
|
|
return self;
|
|
}
|
|
public static T Disable<T>(this T self) where T : Behaviour
|
|
{
|
|
self.enabled = false;
|
|
return self;
|
|
}
|
|
}
|
|
} |