private void ProcessShoot() { if (InputManager.Controller.IsTapDown) { var point = Camera.main.ScreenToWorldPoint(InputManager.Controller.TouchPosition); var collider = Physics2D.OverlapPoint(point, shootInteractionLayers); if (collider != null) { IShootable shootable = collider.transform.GetComponent <IShootable>(); if (shootable != null) { shootable.OnShooted(); IScoresHolder scoresHolder = collider.transform.GetComponent <IScoresHolder>(); if (scoresHolder != null) { Main.SceneController.AddScores(scoresHolder.Scores); } } } } }