Beispiel #1
0
        void Process_Exited(object sender, EventArgs e)
        {
            Process      tempP    = sender as Process;
            StreamReader tempSr   = tempP.StandardOutput;
            string       tempText = tempSr.ReadToEnd();

            mImageFiles = tempText.Split(new String[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
            MonoHelper.AddUpdateListener(DelayHandleImport);
        }
Beispiel #2
0
        public void Start(GameParam param)
        {
            GameLogicManager gameManager = GameLogicManager.Instance;

            gameManager.CreateGame(param);
            gameManager.onPlayerDie       += OnPlayerDie;
            gameManager.onPlayerArriveEnd += OnPlayerArriveEnd;
            m_context = gameManager.Context;

            // 初始玩家数据
            InitPalyerData();

            InitGameInput();

            // 监听frame输入
            MonoHelper.AddUpdateListener(UpdateGame);

            GameCamera.FocusPlayerId = m_mainPlayerId;
        }
Beispiel #3
0
 public void StartUp()
 {
     this.backupUrlState = BackUpUrlState.None;
     StartCheckUpdate();
     MonoHelper.AddUpdateListener(Update);
 }
Beispiel #4
0
        public void Create()
        {
            m_mainUserId = UserManager.Instance.MainUserData.id;
			m_mainUserName = UserManager.Instance.MainUserData.name;
			MonoHelper.AddUpdateListener (OnUpdate);
        }
Beispiel #5
0
 //    void Awake()
 //    {
 //
 //    }
 //    void OnEnable()
 //    {
 //
 //    }
 //
 void Start()
 {
     MonoHelper.AddUpdateListener(PrintArgs);
 }