Ejemplo n.º 1
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 void Update()
 {
     if(popUpActionImageBlack==PopUpAction.OnShow && !bShow){
         animator.SetTrigger("ShowPopUp");
         popUpActionImageBlack=PopUpAction.Idle;
         bShow=true;
     }
     else if(popUpActionImageBlack==PopUpAction.OnHide && bShow){
         animator.SetTrigger("HidePopUp");
         popUpActionImageBlack=PopUpAction.Idle;
         bShow=false;
     }
 }
Ejemplo n.º 2
0
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    void Update()
    {
        if (popUpActionImageBlack == PopUpAction.OnShow && !bShow)
        {
            animator.SetTrigger("ShowPopUp");
            popUpActionImageBlack = PopUpAction.Idle;
            bShow = true;
        }
        else if (popUpActionImageBlack == PopUpAction.OnHide && bShow)
        {
            animator.SetTrigger("HidePopUp");
            popUpActionImageBlack = PopUpAction.Idle;
            bShow = false;
        }
    }
Ejemplo n.º 3
0
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    void Awake()
    {
        animator = GetComponent <Animator>();
        popUpActionImageBlack = PopUpAction.Idle;
    }
Ejemplo n.º 4
0
 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 void Awake()
 {
     animator = GetComponent<Animator>();
     popUpActionImageBlack = PopUpAction.Idle;
 }