public void DelFingerDownMethod(FingerDownMethod fingerMethod) { fingerDownMethods -= fingerMethod; if (fingerDownMethods == null) { fingerDownDetector.enabled = false; } }
//to do 添加的时候,检查有没有激活对应的组件,没有就激活。 //删除的时候,检查有没有需要取消激活,有就取消激活。 public void AddFingerDownMethod(FingerDownMethod fingerDownMethod) { CheckEnable(fingerDownDetector); fingerDownMethods += fingerDownMethod; }