private void OnCollisionEnter2D(Collision2D collision) { if (collision.gameObject.tag == "Player") { queen.DayIncrementOne(); day++; if (day > 2) { collision.gameObject.GetComponent <IFoundFinalName>().isFinalDay = true; } } }
private void OnCollisionEnter2D(Collision2D collision) { if (collision.gameObject.tag == "Player") { queen.DayIncrementOne(); day++; if (day > 2) { collision.gameObject.GetComponent <IFoundFinalName>().isFinalDay = true; } } }