private void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.CompareTag("Player")) { if (!isFixing) { targetTrans = other.gameObject.transform; canFix = !parentLamp.GetIsLampWorking(); if (canFix) { InGamePrompt.instance.ChangePrompt("[E] To Fix Light"); InGamePrompt.instance.ShowPrompt(); fixingCable.ChangeColour(fixingCableColour); player = other.gameObject; } } } }