private void OnTriggerEnter2D(Collider2D collision) { if (collision.CompareTag("key")) { collision.SendMessage("PickUp", numOfKeys); numOfKeys++; ES3.Save <int>("numOfKeys", numOfKeys, "KeyNumber.es3"); MenuDisplay.AddKeys(numOfKeys); HUD.AddKeys(numOfKeys); } }