private void OnTriggerStay(Collider other) { if (other.name.ToLower().Contains("heal") && other.transform.IsChildOf(ownBase.transform) && ownBase.isWorking) { if (currentCode != null && !ownBase.transmitting) { noAxis = true; currCodeIndex = 0; currCodeCorrection = true; ownBase.codeDisplayLevels[currentCode.patternLevel].SetActive(true); ownBase.ActivatingCodeInput(); } if (Time.time > lifeSecondCounter) { if (playerLifes < originalLifeCount) { playerLifes++; } lifeSecondCounter = Time.time + 1; } } }