void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
         //DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         instance = this;
     }
 }
Exemple #2
0
        public static void UiBindOnPointerUp(Component uiElement, Action onPointerUp)
        {
            UiEventHandler uiHandler = (UiEventHandler)uiElement;

            uiHandler.onPointerUp = onPointerUp;
        }
Exemple #3
0
        public static void UiBindOnPointerDown(Component uiElement, Action onPointerDown)
        {
            UiEventHandler uiHandler = (UiEventHandler)uiElement;

            uiHandler.onPointerDown = onPointerDown;
        }