Пример #1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Item"))
        {
            Destroy(other.gameObject);
            _agentController.IncrementAgentScore();
        }

        if (other.CompareTag("FOV"))
        {
            Destroy(gameObject);
            _agentController.AgentDead();
        }
    }