private Transform GetCanvasTransform(PopupsCanvasType canvas) { if (canvas == PopupsCanvasType.Project) { return(projectPopupsCanvas.transform); } return(scenePopupsCanvas.transform); }
public PopupEntityBase(string ruleId = PopupRuleKeys.ShowIfNoVisiblePopupsRule, PopupsCanvasType canvasType = PopupsCanvasType.Scene) { PopupOpenRule = ruleId; CanvasType = canvasType; }
public PopupEntityWithAssetPrefab(PopupViewBase popupViewPrefab, string ruleId = PopupRuleKeys.ShowIfNoVisiblePopupsRule, PopupsCanvasType canvasType = PopupsCanvasType.Scene) : base(ruleId, canvasType) { PopupViewPrefab = popupViewPrefab; }