예제 #1
0
 void Awake()
 {
     transScrollRect = scrollRect.transform as RectTransform;
     createdCount    = countOfSee + 2;
     scrollRect.onValueChanged.AddListener(ScrollCheck);
     GlobalEventQueue.RegisterListener(JLib.DefaultEvent.SetItemScrollRect, ListenSetItems);
 }
예제 #2
0
파일: Tooltip.cs 프로젝트: jjr2930/DUDUDU
        // Use this for initialization
        public void Awake()
        {
            text = transform.GetChild(0).GetComponent <Text>();
            bg   = GetComponent <Image>();

            GlobalEventQueue.RegisterListener(DefaultEvent.ShowTooltip, ListenShowTooltip);
            GlobalEventQueue.RegisterListener(DefaultEvent.HideTooltip, ListenHideTooltip);
        }
예제 #3
0
        //#endregion
        void Awake()
        {
            TableLoader.Initialize();
            GlobalEventQueue.Initialize();
            JResources.Initialize();
            EffectManager.Initialize();
            OnAwake();
            GlobalEventQueue.RegisterListener(DefaultEvent.LoadScene, ListenSceneChange);
            GlobalEventQueue.RegisterListener(DefaultEvent.AddScene, ListenAddScene);
            GlobalEventQueue.RegisterListener(DefaultEvent.UnloadScene, ListenUnloadScene);
            SceneManager.sceneLoaded += LoadedCompleteMethod;
            //gravity = Physics.gravity;


            if (null != appStartMethod)
            {
                appStartMethod.Invoke();
            }
        }
예제 #4
0
 static NetworkObjectManager()
 {
     GlobalEventQueue.RegisterListener(DefaultEvent.NetworkEvent, ListenNetworkMessage);
 }
예제 #5
0
 void Awake()
 {
     GlobalEventQueue.RegisterListener(DefaultEvent.DoTween, ListenDoTween);
 }
예제 #6
0
 void Awake()
 {
     GlobalEventQueue.RegisterListener(DefaultEvent.ShowEffect, ListenShowEffect);
 }
 void RegisterListener()
 {
     GlobalEventQueue.RegisterListener(VK_State.Press, ListenPress);
     GlobalEventQueue.RegisterListener(VK_State.Down, ListenDown);
     GlobalEventQueue.RegisterListener(VK_State.Up, ListenUp);
 }