public void UnSoapNumber() { soapFx.SetActive(false); SoapedNumber sn = gameObject.GetComponent <SoapedNumber>(); if (sn) { Destroy(sn); } }
public void SoapNumber() { soapFx.SetActive(true); SoapedNumber sn = gameObject.GetComponent <SoapedNumber>(); if (!sn) { gameObject.AddComponent <SoapedNumber>(); } // ExpireOverTime }