public override void OnOverlap(PlayerMovement pm) { AddScore(); // Do AddScore method }
/// <summary> /// This function is overwritten by child classes (because of "virtual") /// </summary> /// <param name="pm"></param> virtual public void OnOverlap(PlayerMovement pm) { }