kitsune vi
kitsune vi
CC#
Created by kitsune vi on 3/28/2023 in #help
❔ Use `this` inside method decorator
Tried to follow https://stackoverflow.com/a/2966758
[AttributeUsage(AttributeTargets.Method)]
private class GUIEffect : Attribute
{
public void PerformCall(Action action)
{
action.Invoke();
//action.somehowGetThis.UpdateGUI()
}
}
[AttributeUsage(AttributeTargets.Method)]
private class GUIEffect : Attribute
{
public void PerformCall(Action action)
{
action.Invoke();
//action.somehowGetThis.UpdateGUI()
}
}
Can't figure out how to access this using method decorator
45 replies