void Start()
 {
     gameController = GetComponent <MultiplayerGameController>();
     pv             = GetComponent <PhotonView>();
     connectingMenu.SetActive(true);
     ConnectToMaster();
 }
예제 #2
0
 private void Start()
 {
     // make all circles invisible. They will be visible only on hover
     TurnInvisible();
     gameController = FindObjectOfType <GameController>();
     if (gameController == null)
     {
         multiplayerGameController = FindObjectOfType <MultiplayerGameController>();
     }
 }
    void Start()
    {
        _ghost = gameObject.AddComponent <RS_GhostCarManager> ();

        RS_CarFactory.CarLoadedAction += RS_CarFactory_CarLoadedAction;
        if (Mode == RS_GameMode.Multiplayer)
        {
            ActiveMatchData = new ST_TBM_MatchData(ActiveMatch);
            RS_CarFactory.CreateCar(ActiveMatchData.CompetitorReplay != null ? ActiveMatchData.CompetitorReplay.CarId : RS_GameData.MenuCarId, RS_CarCreationMode.Garage);

            _netController = gameObject.AddComponent <MultiplayerGameController> ();
                        #if !UNITY_EDITOR
            _netController.InitMatchData(ActiveMatch);
                        #endif
        }
        else
        {
            RS_CarFactory.CreateCar(RS_GameData.MenuCarId, RS_CarCreationMode.Garage);
        }
    }
예제 #4
0
 private void Timeout()
 {
     MultiplayerGameController.PrelaoderTimeOut();
 }