//--------------------------------------------------------------------------------
        // 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 = "";
        }
 //--------------------------------------------------------------------------------
 // OnChildEnable
 //--------------------------------------------------------------------------------
 public override void OnChildEnable()
 {
     if (!panelMain)
     {
         panelMain = FindObjectOfType <OM_UI_PanelMain>();
     }
     if (!panelMessage)
     {
         panelMessage = FindObjectOfType <OM_UI_PanelMessage>();
     }
 }
Пример #4
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);
        }
        // -------------------------------------------------------------------------------
        // 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 = "";
        }
Пример #7
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);
        }