Files
MMOKitchen/Systems/ProfileEditorOverride.cs
T

21 lines
539 B
C#
Raw Normal View History

2024-04-01 08:12:01 +11:00
using Kitchen;
namespace MMOKitchen.Systems
{
2024-10-09 16:41:33 +11:00
public class ProfileEditorOverride : InteractionSystem
2024-04-01 08:12:01 +11:00
{
protected override bool IsPossible(ref InteractionData data)
{
return Require(data.Target, out Editor);
}
protected override void Perform(ref InteractionData data)
{
Editor.IsTriggered = true;
Editor.TriggerEntity = data.Interactor;
SetComponent(data.Target, Editor);
}
2024-08-10 05:00:57 +10:00
private CTriggerPlayerSpecificUI Editor;
2024-04-01 08:12:01 +11:00
}
}