Пример #1
0
 virtual protected void GotCash(GameObject cash)
 {
     SoundManager.inst.PlaySFXOneShot(4);
     CorrupterManager.Despawn(this);
     cash.SetActive(false);
     this.GetComponent <BoxCollider>().enabled = false;
 }
Пример #2
0
    public void Die()
    {
        isHappy = true;
        anim.Play("Action");
        CorrupterManager.Despawn(this);

        SoundManager.inst.PlaySFXOneShot(12);
        this.GetComponent <Collider>().enabled = false;
        //this.gameObject.SetActive(false);
    }