void OnCollisionEnter(Collision collision) { CharController cc = collision.collider.GetComponent <CharController>(); if (cc != null) { cc.Heal(healAmount); Destroy(gameObject); } }