public TForm GetForm <TForm>() where TForm : WidgetFormViewBase { var resultForm = _forms.Find(form => form is TForm) as TForm; if (resultForm == null) { resultForm = GameObject.Instantiate(FormsCatalog.GetForm <TForm>()); var layer = GetLayerParent(resultForm.Layer); resultForm.SetLayer(layer); _forms.Add(resultForm); } return(resultForm); }
public void Run() { AddLayers(); FormsCatalog.DetectTargetForm(); }