Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 public override void ActionPerformed()
 {
     WindowLoader.Show(WindowPrefabName, WindowParent);
 }