using OPS.AntiCheat; using OPS.AntiCheat.Field; /////////// private ProtectedInt32 Health = 70; void Start() { Health = 70; } private void OnTriggerEnter(Collider coll) { if (coll.gameObject.CompareTag("box")) { Health++; } if(Health <= Other health) { TODO.. } }