// ----------------------------------------------------------------
    IEnumerator SaveAnimalPhotoAndNextPage()
    {
        //yield return new WaitForSeconds(0.02f);
        yield return(new WaitForEndOfFrame());

        // Save photo
        adjustedImg.sprite = SavePhotoToSprite();

        //yield return new WaitForSeconds(0.02f);
        yield return(new WaitForEndOfFrame());

        UIManager.HideUiElement("G3_SelectAnimal", "FacialGame");
        UIManager.ShowUiElement("Decoration", "FacialGame");

        sideBar.SetIcon(2);
    }
Esempio n. 2
0
    // ----------------------------------------------------------------
    IEnumerator SaveAdjustedPhotoAndNextPage()
    {
        dottedLine.enabled = false;
        draggedImages.ForEach(d => d.SetGestureHintsEnable(false));
        //yield return new WaitForSeconds(0.02f);
        yield return(new WaitForEndOfFrame());

        // Save photo
        adjustedImg.sprite = SavePhotoToSprite();

        //yield return new WaitForSeconds(0.02f);
        yield return(new WaitForEndOfFrame());

        UIManager.HideUiElement("G1_Adjustment", "FacialGame");
        UIManager.ShowUiElement("Decoration", "FacialGame");

        sideBar.SetIcon(2);
    }