예제 #1
0
    // Update is called once per frame
    void FixedUpdate()
    {
        if (transform.localPosition.y < InvisiblePosition - 10)
        {
            try{
                mDispearTimer += Time.deltaTime;
                if (mDispearTimer >= 6.0f)
                {
                    Hide();
                    return;
                }

                if (mAttachSprite.IsHidden() || !mAttachSprite.gameObject.active)
                {
                    Hide();
                }

                if (HelpUtil.GetButtonState(true))
                {
                    Hide();
                }
            }catch {
                Hide();
            }
        }
    }