Exemplo n.º 1
0
 virtual protected void GotCash(GameObject cash)
 {
     SoundManager.inst.PlaySFXOneShot(4);
     CorrupterManager.Despawn(this);
     cash.SetActive(false);
     this.GetComponent <BoxCollider>().enabled = false;
 }
Exemplo n.º 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);
    }