Exemple #1
0
    private void OnTriggerEnter2D(Collider2D other)
    {
        OnCollision otherCollision = other.GetComponent <OnCollision>();

        if (OnCollision.DifferentAlliance(collision, otherCollision))
        {
            otherCollision.SendDamage(hp);
        }
    }