F
F
Fangahra2015-09-03 18:38:21
Android
Fangahra, 2015-09-03 18:38:21

Unity, how to implement simultaneous clicking on multiple objects?

void OnMouseDown(){//Функция нажатия мышью на объект

    if (VSound == true) {
      SoundM ();   //вызываем проигрывание музыки
          }
  }

those. click on the object and the music is played.
since this function is for the mouse, respectively, you cannot click several objects at the same time.
It is necessary to implement multitouch, but I can not find how.
How to use Input.Touch in my case did not understand. Maybe someone has a ready template.
There are several buttons. The goal is for them to be pressed at the same time.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Karakchiev, 2015-09-03
@Fangahra

Let me google it for you:
https://unity3d.com/en/learn/tutorials/modules/beg...
unity3d.ru/distribution/viewtopic.php?f=105&t=23974

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question