示例#1
0
    // 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();
        }
    }