private void OnCollisionEnter2D(Collision2D collision) { Player Player = collision.gameObject.GetComponent <Player>(); if (Player == null) { return; } if (Player.currentState == PlayerStates.Attack) { this.GetComponent <SpriteRenderer>().sprite = Expressions[1]; //Debug.Log("gof"); SD.IncrementScore(1); Debug.Log("point!"); } Kill(); Debug.Log("oof"); }