void Awake() { transScrollRect = scrollRect.transform as RectTransform; createdCount = countOfSee + 2; scrollRect.onValueChanged.AddListener(ScrollCheck); GlobalEventQueue.RegisterListener(JLib.DefaultEvent.SetItemScrollRect, ListenSetItems); }
// 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); }
//#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(); } }
static NetworkObjectManager() { GlobalEventQueue.RegisterListener(DefaultEvent.NetworkEvent, ListenNetworkMessage); }
void Awake() { GlobalEventQueue.RegisterListener(DefaultEvent.DoTween, ListenDoTween); }
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); }