Exemple #1
0
    protected void Start()
    {
        this.turnController  = GlobalControl.Instance.turnController;
        this.roundController = GlobalControl.Instance.roundController;
        this.state           = turnController.State;

        if (GlobalControl.Instance.NewGame)
        {
            state.ResetGame();
            ShufflePlayers();

            turnController.NewGame(this.state);
        }

        overlay         = GetComponentInChildren <Canvas>().gameObject;
        roundsText.text = roundController.GetRoundsText();

        tokenSpawnParticles = GetComponentInChildren <ParticleSystem>();
        tokenSpawnParticles.transform.position = tokenSpawn.position;

        CreateTags();

        state.CurrentPlayer.MyTurn     = true;
        GlobalControl.Instance.NewGame = false;

        turnController.UpdateUndoRedoButtons();
    }