Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        if (_CurrentTransform != null)
        {
            _findingResponse.OnLose(_CurrentTransform);
        }

        var ray = _rayProvider.RayCreate();

        _finder.Check(ray);
        _CurrentTransform = _finder.GetFinding();
        if (_CurrentTransform != null)
        {
            _findingResponse.OnFind(_CurrentTransform);
        }
    }