コード例 #1
0
ファイル: ScreenDrag.cs プロジェクト: sigmalin/Institute
    // Update is called once per frame
    void Update()
    {
        if (screenTouch == null) return;

        if (progress != null)
        {
            progress.Invoke();
        }

        if (card != null)
        {
            this.updateWorldSize();
            card.Flip(worldSize, dragDir);
            card.Render();
        }
    }
コード例 #2
0
    // Update is called once per frame
    void Update()
    {
        if (screenTouch == null)
        {
            return;
        }
        if (Camera.main.orthographic == false)
        {
            return;
        }

        if (progress != null)
        {
            progress.Invoke();
        }

        if (card != null)
        {
            this.updateWorldSize();
            card.Flip(worldSize, dragDir);
            card.Render();
        }
    }