Exemplo n.º 1
0
 public static void Clear()
 {
     DelManager.fButtonDelegate      = null;
     DelManager.sButtonDelegate      = null;
     DelManager.onGoClick            = null;
     DelManager.sprClickEventHandler = null;
 }
Exemplo n.º 2
0
    public void RegisterSpriteClickEventHandler(SpriteClickEventHandler eventHandler)
    {
        UIEventListener expr_0B = UIEventListener.Get(base.gameObject);

        expr_0B.onClick = (UIEventListener.VoidDelegate)Delegate.Remove(expr_0B.onClick, new UIEventListener.VoidDelegate(this.OnSpriteClick));
        UIEventListener expr_37 = UIEventListener.Get(base.gameObject);

        expr_37.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_37.onClick, new UIEventListener.VoidDelegate(this.OnSpriteClick));
        this.m_spriteClickEventHandler = eventHandler;
    }
Exemplo n.º 3
0
 public void RegisterSpriteLongPressEventHandler(SpriteClickEventHandler eventHandler)
 {
     if (eventHandler != null)
     {
         UIEventListener expr_11 = UIEventListener.Get(base.gameObject);
         expr_11.onPress = (UIEventListener.BoolDelegate)Delegate.Remove(expr_11.onPress, new UIEventListener.BoolDelegate(this.OnSpritePress));
         UIEventListener expr_3D = UIEventListener.Get(base.gameObject);
         expr_3D.onPress = (UIEventListener.BoolDelegate)Delegate.Combine(expr_3D.onPress, new UIEventListener.BoolDelegate(this.OnSpritePress));
         UIEventListener expr_69 = UIEventListener.Get(base.gameObject);
         expr_69.onDrag = (UIEventListener.VectorDelegate)Delegate.Remove(expr_69.onDrag, new UIEventListener.VectorDelegate(this.OnSpriteDrag));
         UIEventListener expr_95 = UIEventListener.Get(base.gameObject);
         expr_95.onDrag = (UIEventListener.VectorDelegate)Delegate.Combine(expr_95.onDrag, new UIEventListener.VectorDelegate(this.OnSpriteDrag));
     }
     this.m_spriteLongPressEventHandler = eventHandler;
 }