// Use this for initialization void Start() { uiCameraSystem = Camera.main.GetComponent <UICameraSystem>(); gridList = grid.GetComponent <GridList>(); EventManager.StartListen((int)Events.NEXT_ANIMAL_PAGE_CLICKED, NextPage); EventManager.StartListen((int)Events.PREVIOUS_ANIMAL_PAGE_CLICKED, PreviousPage); EventManager.StartListen((int)Events.CAMERA_MOVED_TO_PAGE, PageRelatedJobs); EventManager.StartListen((int)Events.EXIT_BUTTON_CLICKED, Reset); EventManager.StartListen((int)Events.ANIMAL_CLICKED, ResetWith); }
// Use this for initialization void Start() { uiCameraSystem = Camera.main.GetComponent <UICameraSystem>(); popupController = Popup.GetComponent <PopupController>(); EventManager.StartListen((int)Events.INFO_BUTTON_CLICKED, InfoButtonClicked); EventManager.StartListen((int)Events.PLAY_BUTTON_CLICKED, PlayButtonClicked); EventManager.StartListen((int)Events.RATEUS_BUTTON_CLICKED, RateUsButtonClicked); EventManager.StartListen((int)Events.FACEBOOK_BUTTON_CLICKED, FacebookButtonClicked); EventManager.StartListen((int)Events.TWITTER_BUTTON_CLICKED, TwitterButtonClicked); EventManager.StartListen((int)Events.INFO_BUTTON_CLICKED, StartCoroutineOpenInfoCanvasAfterHalfSec); EventManager.StartListen((int)Events.EXIT_BUTTON_CLICKED, DecideExitAction); EventManager.StartListen((int)Events.CAMERA_MOVED_TO_PAGE, ActiveUItoPages); EventManager.StartListen((int)Events.CAMERA_MOVED_TO_ANIMAL, ActiveUItoAnimal); EventManager.StartListen((int)Events.CAMERA_MOVED_TO_INFO, OpenInfoCanvas); EventManager.StartListen((int)Events.CONNECTED_TO_NET, DecideAccordingConnectionStatus); //GOTOs EventManager.StartListen((int)Events.GOTO_MAIN, GotoMain); }