Esempio n. 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();
        }
    }
Esempio n. 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();
        }
    }