Exemple #1
0
    private void Damage()
    {
        GameObject npcGo = GameObject.Find("Npc");

        if (!npcGo)
        {
            return;
        }

        Npc npc = npcGo.GetComponent <Npc>();

        npc.BeDamage(_bulletData.damage);
    }