Is there a reason you cannot do this:
void functionX()
{
functionY();
}
Based on the description in the question, this is the correct answer. I assume that you have already considered this.
Another possibility is to use the event system to your advantage, something like (uncompiled):
event Action FunctionXCalled;
MyCtor()
{
FunctionXCalled += functionY;
}
void functionY() { }
void functionX()
{
if(FunctionXCalled != null) FunctionXCalled();
}
source
share