Example #1
0
 private void Awake()
 {
     _canvas             = GetComponent <Canvas>();
     _canvas.worldCamera = CameraManager.MainCamera;
     gameObject.SetActive(false);
     _closeButton.onClick.AddListener(() =>
     {
         PopupManager.CloseLast();
         OnCloseButtonClick();
     });
     OnCreate();
 }