@@ -36,8 +36,7 @@ private void Awake ()
3636
3737 public void Init ( FeedData _feedData )
3838 {
39- //Debug.Log ("Player.Init() _username = " + _username);
40- Debug . Log ( "Player.Init() _feedData.tagMatches = " + _feedData . tagMatches ) ;
39+ //Debug.Log ("Player.Init() _feedData.tagMatches = " + _feedData.tagMatches);
4140
4241 // test
4342 //SaveTagMatchesFromStream (_feedData.tagMatches);
@@ -46,6 +45,8 @@ public void Init (FeedData _feedData)
4645 username = _feedData . username ;
4746 avatarPath = _feedData . avatarPath ;
4847 lastActive = DateTime . Now ;
48+
49+ Debug . Log ( "Player.Init() username = " + username ) ;
4950 }
5051
5152 /**
@@ -63,8 +64,11 @@ IEnumerator StartChecks ()
6364 /**
6465 * Parse the tagMatches (monsters) string from the stream and update trails and monster sprites
6566 */
66- public void SaveTagMatchesFromStream ( string tagMatchesStr )
67+ public IEnumerator SaveTagMatchesFromStream ( float wait , string tagMatchesStr )
6768 {
69+ // wait a second
70+ yield return new WaitForSeconds ( wait ) ;
71+
6872 // clear list
6973 tagMatchesMids . Clear ( ) ;
7074
@@ -104,7 +108,7 @@ public void SaveTagMatchesFromStream (string tagMatchesStr)
104108 }
105109 }
106110 // test
107- DebugManager . Instance . PrintList ( "\n \n tagMatchesMids " + username + " " , tagMatchesMids ) ;
111+ DebugManager . Instance . PrintList ( "tagMatchesMids " + username + " " , tagMatchesMids ) ;
108112 // update trailing monsters, with random set to false
109113 StartCoroutine ( trailingMonstersManager . UpdateTrailingMonsters ( 1f , false ) ) ;
110114 }
0 commit comments