Esempio n. 1
0
    private void UpdateIdle()
    {
        if (_mouseStatus.GetMouseJustDown(MouseStatus.KEY.LEFT) &&
            IsTouchBgLayer(touch_Panel))
        {
            _touchBeganTime = TimeHelper.GetCurrentRealTimestamp();
            _touchBeganPos  = _mouseStatus.GetMousePos();

            _state = STATE.HOLDING;
        }
    }
Esempio n. 2
0
    private void UpdateIdle()
    {
        if (_game.state != BattleGame.STATE.BATTLE)
        {
            return;
        }

        if (_mouseStatus.GetMouseJustDown(MouseStatus.KEY.LEFT))
        {
            _touchBeganTime = TimeHelper.GetCurrentRealTimestamp();
            _touchBeganPos  = _mouseStatus.GetMousePos();

            _state = STATE.HOLDING;
        }
    }