private Transform GetCanvasTransform(PopupsCanvasType canvas)
        {
            if (canvas == PopupsCanvasType.Project)
            {
                return(projectPopupsCanvas.transform);
            }

            return(scenePopupsCanvas.transform);
        }
Example #2
0
 public PopupEntityBase(string ruleId = PopupRuleKeys.ShowIfNoVisiblePopupsRule, PopupsCanvasType canvasType = PopupsCanvasType.Scene)
 {
     PopupOpenRule = ruleId;
     CanvasType    = canvasType;
 }
Example #3
0
 public PopupEntityWithAssetPrefab(PopupViewBase popupViewPrefab, string ruleId = PopupRuleKeys.ShowIfNoVisiblePopupsRule, PopupsCanvasType canvasType = PopupsCanvasType.Scene) : base(ruleId, canvasType)
 {
     PopupViewPrefab = popupViewPrefab;
 }