protected virtual void OnTriggerEnter2D(Collider2D other) { if (other.CompareTag("Person")) { Person2 p = other.transform.GetComponent <Person2>(); if (UnityEngine.Random.Range(0, 10) > 5) { Damage(1); } p.Interact(this); } }