Ejemplo n.º 1
0
 // ボタンから呼び出される
 public void OnPushInt()
 {
     if (EventInt != null)
     {
         EventInt.Invoke(this, m_iEventParamInt);
     }
 }
    protected override void Awake()
    {
        InitializeSingleton(this);
        #endregion

        AnyKeyPressed2 = new EventInt();
    }
Ejemplo n.º 3
0
        // Use this for initialization
        void Awake()
        {
            if (OnTouchCountChanged == null)
            {
                OnTouchCountChanged = new EventInt();
            }

            if (OnTouchDown == null)
            {
                OnTouchDown = new EventTouch();
            }

            if (OnTouchUp == null)
            {
                OnTouchUp = new EventTouch();
            }

            if (OnDrag == null)
            {
                OnDrag = new EventTouch();
            }

            if (OnTapPositionUp == null)
            {
                OnTapPositionUp = new EventScreenPosition();
            }

            if (OnMove == null)
            {
                OnMove = new EventTouch();
            }

            if (OnMultiMove == null)
            {
                OnMultiMove = new EventMultiTouch();
            }

            if (OnMultiMoveUp == null)
            {
                OnMultiMoveUp = new EventMultiTouch();
            }
        }