Hello Unity Community!
I am a beginner making my first game on unity, i have searched for a solution and could not find one in the forums, i put my trust in you…
I am trying to stack a few buttons (around 10) vertically one on top of the other to create a sort of a scale for sounds.
the problem is i need it to activate more then one button with one continuous touch…
in other words: i would like to touch the screen and drag my finger across the 10 buttons, and have them all pressed…
currently with a continuos touch, it only recognizes the first button i touched…
i am aware i could have approached this from the wrong angle, so i include my touch_logic script:
using UnityEngine;
using System.Collections;
public class TouchButtonLogic : MonoBehaviour
{
void Update ()
{
//check for touch
if(Input.touches.Length <= 0)
{
//if no touches detected
}
else //if there is a touch
{
for(int i=0; i