예제 #1
0
    void Update()
    {
        if (m_unit != null)
        {
            m_healthGage.fillAmount = m_unit.GetHPPercent();

            if (m_unit.IsDie())
            {
                Destroy(this);
            }
        }
        else
        {
            Destroy(this);
        }
    }