disenchant() 공개 메소드

public disenchant ( ) : string
리턴 string
예제 #1
0
    void OnCollisionEnter(Collision col)
    {
        Enchantable e = col.gameObject.GetComponent <Enchantable>();

        if (e != null)
        {
            e.disenchant();
        }
    }
예제 #2
0
    void OnTriggerEnter(Collider col)
    {
        Enchantable e = col.gameObject.GetComponent <Enchantable>();

        if (e != null)
        {
            e.disenchant();
        }
    }
예제 #3
0
    public void absorbSpell(GameObject target)
    {
        SetHidden(false);

        Enchantable enchantable = (target.GetComponent("Enchantable") as Enchantable);

        if (enchantable == null)
        {
            SetHidden(false);

            return;
        }

        string file_name = enchantable.disenchant();

        //string file_name = enchantable.getJune().getFileName();
        setCurrentFile(file_name);
    }