Exemple #1
0
        protected internal override void OnClose(bool isShutdown, object userData)
#endif
        {
            m_ProcedureMain = null;

            base.OnClose(isShutdown, userData);
        }
Exemple #2
0
        protected override void OnOpen(object userData)
        {
            base.OnOpen(userData);
            m_ProcedureMain = (ProcedureMain)userData;
            if (m_ProcedureMain == null)
            {
                Log.Error("UserData is valid");
                return;
            }

            m_Score = 0;

            GameEntry.Event.Subscribe(UpScoreEventArgs.EventId, OnUpScore);
        }
Exemple #3
0
        protected internal override void OnOpen(object userData)
#endif
        {
            base.OnOpen(userData);

            m_ProcedureMain = (ProcedureMain)userData;
            if (m_ProcedureMain == null)
            {
                Log.Warning("ProcedureMain is invalid when open MenuForm.");
                return;
            }

            m_QuitButton.SetActive(Application.platform != RuntimePlatform.IPhonePlayer);
        }
Exemple #4
0
        protected internal override void OnOpen(object userData)
#endif
        {
            base.OnOpen(userData);
            var curProcedure = GameEntry.Procedure.CurrentProcedure;

            m_ProcedureMain = (ProcedureMain)curProcedure;
            if (m_ProcedureMain == null)
            {
                Log.Warning("m_ProcedureMain is invalid when open MainForm.");
                return;
            }
            logger   = GameObject.Find("MyLogText").GetComponent <Text>();
            loggerBg = GameObject.Find("MyLogger").GetComponent <Image>();

            outText = GameObject.Find("MyOutText").GetComponent <Text>();
            outBg   = GameObject.Find("OutPuts").GetComponent <Image>();
        }