22 lines
539 B
C#
22 lines
539 B
C#
|
|
namespace XCEngine
|
||
|
|
{
|
||
|
|
public class Behaviour : Component
|
||
|
|
{
|
||
|
|
internal ulong m_scriptComponentUUID = 0;
|
||
|
|
|
||
|
|
protected Behaviour()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
public ulong ScriptComponentUUID => m_scriptComponentUUID;
|
||
|
|
|
||
|
|
public bool enabled
|
||
|
|
{
|
||
|
|
get => InternalCalls.Behaviour_GetEnabled(m_scriptComponentUUID);
|
||
|
|
set => InternalCalls.Behaviour_SetEnabled(m_scriptComponentUUID, value);
|
||
|
|
}
|
||
|
|
|
||
|
|
public bool isActiveAndEnabled => enabled && GameObject.activeInHierarchy;
|
||
|
|
}
|
||
|
|
}
|