void OnCollisionEnter2D(Collision2D target) { if (Time.time < collisionValidTime) { return; } if (target.gameObject.tag != "ship" && tag == "rock") { manager.CreatePair(this, size); manager.DeactivateRock(this); } }
void OnCollisionEnter2D(Collision2D target) { if (Time.time < collisionValidTime) { return; } if (target.gameObject.tag != "ship" && tag == "rock") { manager.CreatePair(this, size); manager.DeactivateRock(this); } }