void OnParticleCollision(GameObject other) { DamageSource source = null; if (source = other.GetComponent <DamageSource>()) { // Debug.Log("Damage!!; " + source.Damage); DamageTaken(source.Damage); source.DamageDone(); } }
void OnParticleCollision(GameObject other) { DamageSource source = null; if (source = other.GetComponent <DamageSource>()) { // Debug.Log("Damage!!; " + source.Damage); DamageTaken(source.Damage); source.DamageDone(); } }