private void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.CompareTag("Word")) { if (SceneScript.GetWordNumberByName(this.name) == SceneScript.GetWordNumberByName(other.name)) { this.GetComponent <SpriteRenderer>().sprite = other.GetComponent <SpriteRenderer>().sprite; this.GetComponent <Rigidbody2D>().simulated = false; } } }