private void PlaySkill(RoleBase who, RoleBase toWho) { if (who == null) { Debug.logger.Log("who is null"); } if (who.CurrentAbility == null) { Debug.logger.Log("current ability is null"); } who.CurrentAbility.Perform(); toWho.PlayOnBeSkilled(who.CurrentAbility); toWho.OnBeAffected(who.CurrentAbility, who); }