virtual protected void GotCash(GameObject cash) { SoundManager.inst.PlaySFXOneShot(4); CorrupterManager.Despawn(this); cash.SetActive(false); this.GetComponent <BoxCollider>().enabled = false; }
public void Die() { isHappy = true; anim.Play("Action"); CorrupterManager.Despawn(this); SoundManager.inst.PlaySFXOneShot(12); this.GetComponent <Collider>().enabled = false; //this.gameObject.SetActive(false); }