Пример #1
0
    private void ToSceneListener()
    {
        if (inputService.IsInputDown())
        {
            RaycastHit2D hit = Physics2D.Raycast(Camera.main.ScreenToWorldPoint(Input.mousePosition), Vector2.zero);

            if (hit.collider != null &&
                hit.collider.gameObject == gameObject)
            {
                adService.HideAdmobSmallBanner();
                SceneManager.LoadScene(sceneIndex);
            }
        }
    }