예제 #1
0
 protected override void OnDestroy()
 {
     if (onPointerDown != null)
     {
         onPointerDown.RemoveAllListeners();
     }
     if (onPointerUp != null)
     {
         onPointerUp.RemoveAllListeners();
     }
     base.OnDestroy();
 }
예제 #2
0
 public void Dispose()
 {
     Event.RemoveAllListeners();
 }