//--------------------------------------------------------------------------------
        // OnChildEnable
        //--------------------------------------------------------------------------------
        public override void OnChildEnable()
        {
            if (!panelMain)
            {
                panelMain = FindObjectOfType <OM_UI_PanelMain>();
            }
            if (!panelMessage)
            {
                panelMessage = FindObjectOfType <OM_UI_PanelMessage>();
            }
            if (!panelSecurityCode)
            {
                panelSecurityCode = FindObjectOfType <OM_UI_PanelSecurityCode>();
            }

            if (inputAccountNameOld != null)
            {
                inputAccountNameOld.text = sCurrentAccountName;
            }
            else
            {
                Debug.LogWarning(Constants.STR_ERROR_MISSING_UI + this.name);
            }

            sCurrentAccountName      = clientManager.clientAccount.sName;
            inputAccountNameOld.text = sCurrentAccountName;
            inputAccountName.text    = "";
            inputPassword.text       = "";
        }
예제 #2
0
        //--------------------------------------------------------------------------------
        // OnChildEnable
        //--------------------------------------------------------------------------------
        public override void OnChildEnable()
        {
            if (!panelActorList)
            {
                panelActorList = FindObjectOfType <OM_UI_PanelActorSelect>();
            }
            if (!panelMain)
            {
                panelMain = FindObjectOfType <OM_UI_PanelMain>();
            }
            if (!panelMessage)
            {
                panelMessage = FindObjectOfType <OM_UI_PanelMessage>();
            }
            if (!panelSecurityCode)
            {
                panelSecurityCode = FindObjectOfType <OM_UI_PanelSecurityCode>();
            }
            if (!panelOverlay)
            {
                panelOverlay = FindObjectOfType <OM_UI_PanelOverlay>();
            }

            inputUsername.text = "";
            inputPassword.text = "";
        }
예제 #3
0
        //--------------------------------------------------------------------------------
        // OnChildEnable
        //--------------------------------------------------------------------------------
        public override void OnChildEnable()
        {
            if (!panelMessage)
            {
                panelMessage = FindObjectOfType <OM_UI_PanelMessage>();
            }

            inputCode.text = "";
        }
 //--------------------------------------------------------------------------------
 // OnChildEnable
 //--------------------------------------------------------------------------------
 public override void OnChildEnable()
 {
     if (!panelMain)
     {
         panelMain = FindObjectOfType <OM_UI_PanelMain>();
     }
     if (!panelMessage)
     {
         panelMessage = FindObjectOfType <OM_UI_PanelMessage>();
     }
 }
예제 #5
0
        //--------------------------------------------------------------------------------
        // Show
        //--------------------------------------------------------------------------------
        public override void OnChildEnable()
        {
            if (!panelMain)
            {
                panelMain = FindObjectOfType <OM_UI_PanelMain>();
            }
            if (!panelMessage)
            {
                panelMessage = FindObjectOfType <OM_UI_PanelMessage>();
            }

            text.text = msgVersionCheck;

            Invoke("CheckVersion", 2f);
        }
예제 #6
0
        // -------------------------------------------------------------------------------
        // OnChildEnable
        // -------------------------------------------------------------------------------
        public override void OnChildEnable()
        {
            if (!panelActorList)
            {
                panelActorList = FindObjectOfType <OM_UI_PanelActorSelect>();
            }
            if (!panelMessage)
            {
                panelMessage = FindObjectOfType <OM_UI_PanelMessage>();
            }

            buttonCreate.interactable = false;
            inputActorname.text       = "";

            dictAspects.Clear();

            foreach (ActorAspects actorAspect in actorAspects)
            {
                if (!String.IsNullOrWhiteSpace(actorAspect.aspectFamily) &&
                    actorAspect.aspectPanel != null)
                {
                    actorAspect.aspectPanel.Init(actorAspect.aspectFamily);
                }
                else
                {
                    actorAspect.aspectPanel.Hide();
                }
            }

            if (!_cameraPositionObject)
            {
                _cameraPositionObject = GameObject.Find(cameraPositionObject);
            }
            if (!_cameraTargetObject)
            {
                _cameraTargetObject = GameObject.Find(cameraTargetObject);
            }
            if (!_actorPositionObject)
            {
                _actorPositionObject = GameObject.Find(actorPositionObject);
            }

            Camera.main.transform.position = _cameraPositionObject.transform.position;

            iTween.LookTo(Camera.main.gameObject, _cameraTargetObject.transform.position, 0f);
        }
        // -------------------------------------------------------------------------------
        // OnChildEnable
        // -------------------------------------------------------------------------------
        public override void OnChildEnable()
        {
            if (!panelMain)
            {
                panelMain = FindObjectOfType <OM_UI_PanelMain>();
            }
            if (!panelMessage)
            {
                panelMessage = FindObjectOfType <OM_UI_PanelMessage>();
            }
            if (!panelSecurityCode)
            {
                panelSecurityCode = FindObjectOfType <OM_UI_PanelSecurityCode>();
            }

            inputAccountName.text = "";
            inputPassword.text    = "";
        }
        // -------------------------------------------------------------------------------
        // OnChildEnable
        // -------------------------------------------------------------------------------
        public override void OnChildEnable()
        {
            if (!panelMain)
            {
                panelMain = FindObjectOfType <OM_UI_PanelMain>();
            }
            if (!panelMessage)
            {
                panelMessage = FindObjectOfType <OM_UI_PanelMessage>();
            }
            if (!panelSecurityCode)
            {
                panelSecurityCode = FindObjectOfType <OM_UI_PanelSecurityCode>();
            }

            sCurrentMail       = clientManager.clientAccount.sMail;
            inputEmailOld.text = sCurrentMail;
            inputEmail.text    = "";
            inputPassword.text = "";
        }
예제 #9
0
        //--------------------------------------------------------------------------------
        // OnChildEnable
        //--------------------------------------------------------------------------------
        public override void OnChildEnable()
        {
            if (!panelActorCreate)
            {
                panelActorCreate = FindObjectOfType <OM_UI_PanelActorCreate>();
            }
            if (!panelAccountOptions)
            {
                panelAccountOptions = FindObjectOfType <OM_UI_PanelAccountOptions>();
            }
            if (!panelMain)
            {
                panelMain = FindObjectOfType <OM_UI_PanelMain>();
            }
            if (!panelOverlay)
            {
                panelOverlay = FindObjectOfType <OM_UI_PanelOverlay>();
            }
            if (!panelMessage)
            {
                panelMessage = FindObjectOfType <OM_UI_PanelMessage>();
            }

            buttonActorDelete.interactable = false;
            buttonActorLogin.interactable  = false;

            if (buttonActorCreate != null)
            {
                buttonActorCreate.GetComponentInChildren <Text>().text = String.Format(labelButtonCreate, clientManager.actorsRemaining);
                if (clientManager.actorsRemaining < 1)
                {
                    buttonActorCreate.interactable = false;
                }
            }
            else
            {
                Debug.LogWarning(Constants.STR_ERROR_MISSING_UI + this.name);
            }

            if (!_cameraPositionObject)
            {
                _cameraPositionObject = GameObject.Find(cameraPositionObject);
            }
            if (!_cameraTargetObject)
            {
                _cameraTargetObject = GameObject.Find(cameraTargetObject);
            }

            _actorPositionObject = new GameObject[actorPositionObject.Length];

            for (int i = 0; i < actorPositionObject.Length; ++i)
            {
                _actorPositionObject[i] = GameObject.Find(actorPositionObject[i]);
            }

            _actorObject = new GameObject[actorPositionObject.Length];

            Camera.main.transform.position = _cameraPositionObject.transform.position;

            iTween.LookTo(Camera.main.gameObject, _cameraTargetObject.transform.position, 0f);
        }