Пример #1
0
    public void MoveGlassToLeft()
    {
        PostMethods.InsertCheersIntoMatchsDatabase(AppManeger.instance.userID, choosenId, "false", (result) => {
            Debug.Log(result);
        });

        moveGlassAnimartor.SetTrigger("goLeft");          // trigger animation to left

        StartCoroutine("FindMoreCheers");
    }
Пример #2
0
    public void MoveGlassToRight()
    {
        PostMethods.InsertCheersIntoMatchsDatabase(AppManeger.instance.userID, choosenId, "true", (result) => {
            Debug.Log(result);
        });

        moveGlassAnimartor.SetTrigger("goRight");        // trigger animation to right
        fixGlassAnimator.SetBool("rotate", true);        //trigger rotation on the fix glass

        StartCoroutine("FindMoreCheers");
    }