Ejemplo n.º 1
0
    public void OnPointerClick(PointerEventData eventData)
    {
        int click_num = eventData.clickCount;

        if (click_num == 2)
        {
            print("Move camera to: " + character.name);

            return;
        }

        if (click_num == 1)
        {
            selection_system.AutoSelectPlayer(character);
        }
    }
Ejemplo n.º 2
0
 /// <summary>
 /// This method is called when Cosmo is selected and hided in a box.
 /// </summary>
 public void HideSelected()
 {
     selection_system.AutoSelectPlayer(gameObject);
 }