Exemplo n.º 1
0
    private void ScrumSwitchToPlayers()
    {
        ScrumBloc bloc = this.game.refs.gameObjects.ScrumBloc;

        this.game.Ball.Model.enabled = true;
        this.game.southTeam.ShowPlayers(true);
        this.game.northTeam.ShowPlayers(true);
        bloc.gameObject.SetActive(false);
    }
Exemplo n.º 2
0
    public void ScrumSwitchToBloc()
    {
        ScrumBloc bloc = this.game.refs.gameObjects.ScrumBloc;

        bloc.transform.position = this.PlaceScrumBloc();

        this.game.southTeam.ShowPlayers(false);
        this.game.northTeam.ShowPlayers(false);
        this.game.Ball.Model.enabled = false;
        bloc.gameObject.SetActive(true);
    }
Exemplo n.º 3
0
    public void NowScrum()
    {
        ScrumBloc bloc = this.game.refs.gameObjects.ScrumBloc;

        ScrumManager sc = this.game.refs.managers.scrum;

        sc.InitialPosition = this.PlaceScrumBloc();
        sc.ScrumBloc       = bloc;

        sc.callback = (Team t, Vector3 endPos) =>
        {
            scrumWinners = t;
            scrumEndPos  = endPos;

            this.ScrumGiveSuperPoints(t);

            game.OnResumeSignal(FreezeAfterScrum);
        };

        sc.enabled = true;
    }