void OnCollisionStay2D(Collision2D collision) { if (InputCapture.pickup && !GameManager.paused && collision.gameObject.CompareTag("Player") && !touchingMe) { for (int i = 0; i < player.GetComponent <RobotLoadout> ().loadout.Length; i++) { player.GetComponent <RobotLoadout> ().power[i] = player.GetComponent <RobotLoadout> ().loadout[i].itemPower; } print("Equipment power restored"); qController.CompleteCurrentQuest(); touchingMe = true; } if (GameManager.paused && touchingMe) { touchingMe = false; } }