Пример #1
0
        /// <summary>
        /// Initializes the LocalPlayerSimulator and simulates a board.
        /// </summary>
        public void Start()
        {
            HeadHolder holder = this.transform.parent.GetComponent <HeadHolder>();

            this.marker = holder.GetPlayer(FakeOverviewPlayerId);
            holder.Follow(this.marker);
        }
Пример #2
0
        /// <summary>
        /// Initializes the LocalPlayerSimulator and simulates a board.
        /// </summary>
        public void Start()
        {
            HeadHolder holder = this.transform.parent.GetComponent <HeadHolder>();

            this.marker = holder.GetPlayer(this.PlayerId);
            holder.Follow(this.marker);

            this.StartCoroutine(this.transform.parent.GetComponent <BoardResizer>().UpdateBoardSize(this.SimulatedBoardSize));
            LevelManager manager = this.transform.parent.GetComponent <LevelManager>();

            manager.BoardSize = this.SimulatedBoardSize;
            manager.RestartLevel();
        }