Potion.ApplyAttack C# (CSharp) 메소드

ApplyAttack() 공개 메소드

public ApplyAttack ( int damage ) : bool
damage int
리턴 bool
    public override bool ApplyAttack(int damage)
    {
        objInt().Quality-=damage;
            if (objInt().Quality<=0)
            {
                    ChangeType(213,23);//Change to debris.
                    this.gameObject.AddComponent<object_base>();//Add a generic object base for behaviour
                    Destroy(this);//Kill me now.
            }
            return true;
    }