private void OnTriggerEnter(Collider other) { CountingPanContents validPan = other.gameObject.GetComponentInChildren <CountingPanContents>(); if (validPan && side == validPan.GetPlayerSide() && validPan.isPanEmpty() == false) { pan = validPan; onCorrectStove = true; } }
private void OnTriggerExit(Collider other) { CountingPanContents validPan = other.gameObject.GetComponentInChildren <CountingPanContents>(); if (validPan && side == validPan.GetPlayerSide()) { timeOnStove = 0f; onCorrectStove = false; countedPanContents = false; } }