I have the following static method held in an Analytics class:
public static void buttonHit(string eventName, string eventAction, string description)
{
gua.sendEventHit(eventName,eventAction,description,1);
}
In a second class I'm trying to fill this out as follows:
Analytics analytics;
void buttonEventAnalytic()
{
analytics.buttonHit(event_NameString, event_ActionString, event_Label);
}
However when I do so I get the following error:
error CS0176: Static member `Analytics.buttonHit(string, string, string)' cannot be accessed with an instance reference, qualify it with a type name instead
Could someone please enlighten me as to how I can defeat this error?