public override void ActionPerformed() { var parent = WindowLoader.Show(WindowPrefabName, WindowParent); var script = parent.GetComponentInChildren <ActionShowLoadOwner>(); if (script != null) { script.Target = LoadButton; script.PanelTarget = BackPanel; } else { Debug.LogWarning("No ActionShowLoadOwner script was found"); } if (BackPanel != null) { NGUITools.SetActive(BackPanel.gameObject, false); } }
public override void ActionPerformed() { WindowLoader.Show(WindowPrefabName, WindowParent); }