// -------------------------------------------------------------------------------
        // ClickCancel
        // -------------------------------------------------------------------------------
        public void ClickCancel()
        {
            for (int i = 0; i < _actorPositionObject.transform.childCount; i++)
            {
                Destroy(_actorPositionObject.transform.GetChild(i).gameObject);
            }

            foreach (ActorAspects aspects in actorAspects)
            {
                aspects.aspectPanel.Hide();
            }

            Hide();
            panelActorList.Show();
        }
Exemple #2
0
 //--------------------------------------------------------------------------------
 // CallbackLogin
 //--------------------------------------------------------------------------------
 private void CallbackLogin(string[] result)
 {
     if (result[0] == Constants.INT_FAILURE.ToString())
     {
         panelMessage.Show(msgFail);
     }
     else if (result[0] == Constants.INT_CONFIRM.ToString())
     {
         panelMessage.Show(msgFailConfirm);
         panelSecurityCode.Init(Constants.AccountActionType.ConfirmAccount, CallbackConfirmLogin);
     }
     else if (result[0] == Constants.INT_RECONFIRM.ToString())
     {
         panelMessage.Show(msgFailConfirm);
         panelSecurityCode.Init(Constants.AccountActionType.LoginAccount, CallbackConfirmLogin);
     }
     else if (result[0] == Constants.INT_SUCCESS.ToString())
     {
         panelOverlay.Show();
         panelActorList.Show();
         Hide();
     }
 }