protected override void OnInitialize()
 {
     GameObjectUtilities.FindGameObject(_panelRoute + "/AnswerButton").GetComponent <Button>().onClick.AddListener(() => AnswerClickedEvent?.Invoke());
     _panel      = GameObjectUtilities.FindGameObject(_panelRoute);
     _background = GameObjectUtilities.FindGameObject("BackgroundContainer/CallBackgroundImage");
     _callAnim   = GameObjectUtilities.FindGameObject(_panelRoute + "/SatelliteAnimContainer").GetComponent <CallAnimationBehaviour>();
 }
 private void OnButtonClicked()
 {
     AnswerClickedEvent.Invoke(guid);
 }
示例#3
0
 public void OnPointerClick(PointerEventData eventData)
 {
     AnswerClickedEvent?.Invoke(isCorrect);
 }