예제 #1
0
 public RacingManagerShould()
 {
     _sut = new RacingManager(_racingCardOnDeskManager.Object,
                              _mockITrackManager.Object);
     BoardGame.Mediator = new Mock <IMediator>()
     {
         DefaultValue = DefaultValue.Mock
     }.Object;
 }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        // Network level loading is done in a separate channel
        DontDestroyOnLoad(this);
        //Debug.Log(gameObject.name);
        networkView       = GetComponent <NetworkView>();
        racingManager     = GetComponent <RacingManager>();
        networkView.group = 1;

        maxNumPlayers = 7; // number of players other than the server
        numPlayers    = maxNumPlayers;

        queuedLevels = new List <string>();
        playerList   = new List <NetworkPlayer>();
        nameList     = new List <string>();
    }
예제 #3
0
 private void Start()
 {
     is_passed     = new bool[2];
     _index        = int.Parse(transform.name) - 1;
     racingManager = transform.GetComponentInParent <RacingManager>();
 }