Ejemplo n.º 1
0
    public void DetectSlideShowTime(int time)
    {
        bool showImage = false;

        if ((string)dynamicConfigObject["slide_show"]["show"] == "yes")
        {
            if (time != -1 && imageInfo.ContainsKey(time))
            {
                showImage = true;
                helperImage.gameObject.SetActive(false);
                coroutine = LoadImage(image, imageInfo, time);
                StartCoroutine(coroutine);
                image.gameObject.SetActive(true);
            }
            if (time != -1 && helperImageInfo.ContainsKey(time))
            {
                showImage = true;
                coroutine = LoadImage(helperImage, helperImageInfo, time);
                StartCoroutine(coroutine);
                helperImage.gameObject.SetActive(true);
            }
        }
        if (showImage == true)
        {
            animStatusBeforeSlideShow = anim.GetAnimStatus();
            Debug.Log("Animation Status BEFORE = " + animStatusBeforeSlideShow);
            if (animStatusBeforeSlideShow != Global.AnimStatus.Pause)
            {
                anim.Pause();
            }
            anim.EventTagAppear();
        }
    }
Ejemplo n.º 2
0
 bool ShowBillBoard(GameObject obj)
 {
     if (boardOn == false)
     {
         boardOn = true;
         animStatusBeforeBoard = anim.GetAnimStatus();
         if (animStatusBeforeBoard != Global.AnimStatus.Pause)
         {
             anim.Pause();
         }
         obj.SetActive(true);
         return(true);
     }
     return(false);
 }