public static void WriteRunicBoard(RunicBoard runicBoard, NetworkStream stream) { WriteInt(runicBoard.RunesOnBoard.Count, stream); foreach (KeyValuePair<int, Rune> entry in runicBoard.RunesOnBoard) { WriteInt(entry.Key, stream); WriteElement(entry.Value.Element, stream); } }
void Awake() { _runesGO = new List<GameObject>(); Dictionary<int, Rune> hand = RunicBoardManager.GetInstance().TempHand; Logger.Debug("Awake Runic Board Behaviour"); Board = new RunicBoard(hand); RunicBoardManager.GetInstance().RegisterBoard(Board); RunicBoardManager.GetInstance().RegisterBoardBehaviour(this); InstantiateRunesInHand(); }