Beispiel #1
0
    public void Enter(Player player)
    {
        this.player = player;
        player.lane = this;
        player.ApplyColor(this.color);

        if (uIController == null)
        {
            uIController = FindObjectOfType <UIController>();
        }
        uIController.ActivateLaneUI(id);

        if (gameController == null)
        {
            gameController = FindObjectOfType <GameController>();
        }
        StartCoroutine(gameController.UpdatePlayersCount());
    }