feat(scripting): add mono csharp runtime foundation
This commit is contained in:
21
managed/XCEngine.ScriptCore/Behaviour.cs
Normal file
21
managed/XCEngine.ScriptCore/Behaviour.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user