// Use this for initialization
 void Start()
 {
     GameModeHandler = GameObject.Find("GameController");
     gamehandler = GameModeHandler.GetComponent<GamemodeHandler>();
     if ((this.transform.position.x + BlockWidth) > laneWidth)
     {
         this.transform.Rotate(new Vector3(0,90,0));
     }
 }
    private void ActivateCorrectScreenView()
    {
        currentGameMode = splitScreenModeArray[(int)splitScreenMode];
        activePlayers   = currentGameMode.GetPlayerList();

        // Checking if debugMode:
        if (forceDebugMode)
        {
            playerCount = debugPlayerCount;
        }
        else
        {
            playerCount = activePlayers.Count;
        }

        Debug.Log("Setting gamestate up for " + playerCount + " players!");
        currentGameMode.gameObject.SetActive(true);
    }
示例#3
0
 // Use this for initialization
 void Start()
 {
     originalSpawn = this.transform.position;
     GameModeHandler = GameObject.Find("GameController");
     gamehandler = GameModeHandler.GetComponent<GamemodeHandler>();
 }