Пример #1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.tag == "Player")
        {
            pointManager.RemovePoint();
            removePointUI.ActionUI();
            DeleteEnemy();
        }

        if (other.tag == "Bullet")
        {
            Destroy(other.gameObject);
            pointManager.AddPoint(enemyPoint);
            addPointUI.ActionUI();
            DeleteEnemy();
        }
    }