示例#1
0
    void OnParticleCollision(GameObject other)
    {
        DamageSource source = null;

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