Ejemplo n.º 1
0
 protected override void Die()
 {
     PlayerAnim.SetInteger(GlobalVariables.UNIQUE_ANIM_VALUE, GlobalVariables.PLAYER_ANIM_DEATH);
     IgnoreControl = true;
     //GetComponent<CapsuleCollider>().enabled = false;
     gameObject.layer = 0;
     Settings.Instance.Audio.PlayEffect(audioSource, Data.AudioContainer.PlayerSFX.Death);
     //GetComponent<Rigidbody>().isKinematic = true;
 }