コード例 #1
0
    protected override void SetPhase()
    {
        int hpPercent = (_currentHp * 100 / _totalHp);

        if (hpPercent <= 0)
        {
            //Dead anim
            //remove me from the list;
            if (mySpawner)
            {
                mySpawner.RemoveFromList(this);
            }
            Destroy(gameObject);
        }
    }