public override void Kill() { strawAnim.SetTrigger("burn"); anim.SetTrigger("burn"); characterSelectionManager.CharStats[killed.GetComponent <PlayerStats>().Stats1.Index] = killed.GetComponent <PlayerStats>().Stats1; characterSelectionImageDispatcher.SpriteAdder(killed.GetComponent <PlayerStats>().Stats1.Index); aldisPathScript.enabled = false; playerScript.IsTalking = true; toDestroy = true; }
public override void Kill() { actionScript.OnOffAnimator(false); anima.gameObject.GetComponent <PolygonCollider2D>().isTrigger = true; anima.SetTrigger("kill"); characterSelectionManager.CharStats[killed.GetComponent <PlayerStats>().Stats1.Index] = killed.GetComponent <PlayerStats>().Stats1; characterSelectionImageDispatcher.SpriteAdder(killed.GetComponent <PlayerStats>().Stats1.Index); playerScript.IsTalking = true; toDestroy = true; }