void OnCollisionEnter2D(Collision2D coll) { if (FFServer.isLocal) { if (Damage > 0) { // Send Messages ExHealth.ApplyHealthEvent e; e.amount = -Damage; e.time = (float)FFSystem.time; e.group = DamageGroup; FFMessageBoard <ExHealth.ApplyHealthEvent> .SendToLocalUp(e, coll.gameObject); FFMessageBoard <ExHealth.ApplyHealthEvent> .SendToNetUp(e, coll.gameObject, true); if (DestroyOnCollision) { gameObject.Destroy(); } } } }