private void OnTriggerEnter(Collider other) { if (other.CompareTag("PuzzleBox") || other.CompareTag("Player")) { ObjectCount += 1; if (ObjectCount > 0) { ButtonObject.ActivateOthers(); } } }
private void OnTriggerEnter(Collider other) { if (other.CompareTag("PuzzleBox") || other.CompareTag("Player")) { ObjectCount += 1; if (ObjectCount > 0) { ButtonObject.ActivateOthers(); } } }