コード例 #1
0
    public void UnSoapNumber()
    {
        soapFx.SetActive(false);
        SoapedNumber sn = gameObject.GetComponent <SoapedNumber>();

        if (sn)
        {
            Destroy(sn);
        }
    }
コード例 #2
0
    public void SoapNumber()
    {
        soapFx.SetActive(true);
        SoapedNumber sn = gameObject.GetComponent <SoapedNumber>();

        if (!sn)
        {
            gameObject.AddComponent <SoapedNumber>();
        }
//		ExpireOverTime
    }