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); }
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); }
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; }