Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions corlib/MenSharpBehaviour.Unity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,45 @@ public void SendCustomEvent(string eventName)
{
udonBehaviour.SendCustomEvent(eventName);
}

public object GetProgramVariable(string name)
{
return udonBehaviour.GetProgramVariable(name);
}

public void SetProgramVariable(string name, object value)
{
udonBehaviour.SetProgramVariable(name, value);
}

public void SendCustomEventDelayedSeconds(
string eventName,
float delaySeconds,
VRC.Udon.Common.Enums.EventTiming eventTiming = VRC.Udon.Common.Enums.EventTiming.Update)
{
udonBehaviour.SendCustomEventDelayedSeconds(eventName, delaySeconds, eventTiming);
}

public void SendCustomEventDelayedFrames(
string eventName,
int delayFrames,
VRC.Udon.Common.Enums.EventTiming eventTiming = VRC.Udon.Common.Enums.EventTiming.Update)
{
udonBehaviour.SendCustomEventDelayedFrames(eventName, delayFrames, eventTiming);
}

public bool DisableInteractive
{
get { return udonBehaviour.DisableInteractive; }
set { udonBehaviour.DisableInteractive = value; }
}

public string InteractionText
{
get { return udonBehaviour.InteractionText; }
set { udonBehaviour.InteractionText = value; }
}

public void SendCustomNetworkEvent(VRC.Udon.Common.Interfaces.NetworkEventTarget target, string eventName)
{
udonBehaviour.SendCustomNetworkEvent(target, eventName);
Expand Down
35 changes: 35 additions & 0 deletions unity/io.tesca.mensharp/Runtime/MenSharpBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,41 @@ public void SendCustomEvent(string eventName)
{
}

public object GetProgramVariable(string name)
{
return null;
}

public void SetProgramVariable(string name, object value)
{
}

public void SendCustomEventDelayedSeconds(
string eventName,
float delaySeconds,
VRC.Udon.Common.Enums.EventTiming eventTiming = VRC.Udon.Common.Enums.EventTiming.Update)
{
}

public void SendCustomEventDelayedFrames(
string eventName,
int delayFrames,
VRC.Udon.Common.Enums.EventTiming eventTiming = VRC.Udon.Common.Enums.EventTiming.Update)
{
}

public bool DisableInteractive
{
get { return false; }
set { }
}

public string InteractionText
{
get { return null; }
set { }
}

public void SendCustomNetworkEvent(VRC.Udon.Common.Interfaces.NetworkEventTarget target, string eventName)
{
}
Expand Down
Loading