public void Access() { if (canAccess) { CurrentData++; ShowData.instance.updateText(CurrentData); Reporter.instance.ShowMessage("new data verified", true); if (ap != null) { ap.Accessed(); } } else { Reporter.instance.ShowMessage("no access point detected", true); } }