RoguePoet01
Programmer
Hi,
I keep getting an error asking me to put a ";" at the end of the second line, after the "!= null)" part.
public void HirePerson(Person p) {
If ( m_OnNewHireDelegate != null )
m_OnNewHireDelegate(p);
}
But when I do that, then I get a different error telling me that the name "If" doesn't exist in the given class.
public void HirePerson(Person p) {
If ( m_OnNewHireDelegate != null )
m_OnNewHireDelegate(p);
}
Any ideas? Thanks.
I keep getting an error asking me to put a ";" at the end of the second line, after the "!= null)" part.
public void HirePerson(Person p) {
If ( m_OnNewHireDelegate != null )
m_OnNewHireDelegate(p);
}
But when I do that, then I get a different error telling me that the name "If" doesn't exist in the given class.
public void HirePerson(Person p) {
If ( m_OnNewHireDelegate != null )
m_OnNewHireDelegate(p);
}
Any ideas? Thanks.