public void MoveGlassToLeft() { PostMethods.InsertCheersIntoMatchsDatabase(AppManeger.instance.userID, choosenId, "false", (result) => { Debug.Log(result); }); moveGlassAnimartor.SetTrigger("goLeft"); // trigger animation to left StartCoroutine("FindMoreCheers"); }
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"); }