Beispiel #1
0
    public void OnPointerClick(PointerEventData eventData)
    {
        object sender = null;

        try
        {
            switch (OnClickAction)
            {
            case MinimalPuzzleCallTypes.ShowScreen:
            case MinimalPuzzleCallTypes.CloseScreen:
                if (ScreenList.Count > ScreenTagIndex)
                {
                    sender = ScreenList[ScreenTagIndex];
                }
                break;
            }
        }
        catch { }

        MinimalPuzzle2D.Call(OnClickAction, sender);
    }
Beispiel #2
0
 // ----------------------------------------------------------------------
 void Awake()
 {
     // Singleton
     Instance = this;
 }