Exemplo n.º 1
0
//   A way to announce when enemy takes dmg
//    public void OnBully()
//    {
//        Debug.Log(name + "I also know u took damage");
//    }

    public void HitEvent()
    {
        if (tgt == null)
        {
            return;
        }
        tgt.DamageTaken(dmg);
        tgt.GetComponent <BloodScreen>().ShowHitImpact();
    }