private void ScrumGiveSuperPoints(Team winner) { SuperSettings settings = this.game.settings.Global.Super; this.IncreaseSuper(settings.scrumWinSuperPoints, winner); this.IncreaseSuper(settings.scrumLooseSuperPoints, winner.opponent); }
void Start() { game = Game.instance; team = gameObject.GetComponent <Team>(); superActive = false; settings = this.game.settings.Global.Super; SuperTimeLeft = 0f; }
public void OnDropFinished(Ball.DropResult res) { Team t = this.game.Ball.PreviousOwner.Team; SuperSettings settings = game.settings.Global.Super; if (res == Ball.DropResult.GROUND) { IncreaseSuper(settings.dropLooseSuperPoints, t); } if (res == Ball.DropResult.INTERCEPTED) { IncreaseSuper(settings.dropLooseSuperPoints, t); //IncreaseSuper(settings.?????, t.opponent); } }
public void OnPassFinished(Ball.PassResult res) { Team prev = this.game.Ball.PreviousOwner.Team; SuperSettings settings = this.game.settings.Global.Super; if (res == Ball.PassResult.GROUND) { this.IncreaseSuper(settings.passLooseSuperPoints, prev); } if (res == Ball.PassResult.MANAGED) { this.IncreaseSuper(settings.passWinSuperPoints, prev); } if (res == Ball.PassResult.OPPONENT) { this.IncreaseSuper(settings.passLooseSuperPoints, prev); this.IncreaseSuper(settings.passInterceptSuperPoints, prev.opponent); } }
public SettingsComponent() { _settings = SuperSettings.Instance; }
void Start() { game = Game.instance; team = gameObject.GetComponent<Team>(); superActive = false; settings = this.game.settings.Global.Super; SuperTimeLeft = 0f; }