Exemplo n.º 1
0
    private void ScrumGiveSuperPoints(Team winner)
    {
        SuperSettings settings = this.game.settings.Global.Super;

        this.IncreaseSuper(settings.scrumWinSuperPoints, winner);
        this.IncreaseSuper(settings.scrumLooseSuperPoints, winner.opponent);
    }
Exemplo n.º 2
0
    void Start()
    {
        game        = Game.instance;
        team        = gameObject.GetComponent <Team>();
        superActive = false;
        settings    = this.game.settings.Global.Super;

        SuperTimeLeft = 0f;
    }
Exemplo n.º 3
0
    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);
        }
    }
Exemplo n.º 4
0
    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);
        }
    }
Exemplo n.º 5
0
 public SettingsComponent()
 {
     _settings = SuperSettings.Instance;
 }
Exemplo n.º 6
0
    void Start()
    {
        game 	        = Game.instance;
        team			= gameObject.GetComponent<Team>();
        superActive     = false;
        settings = this.game.settings.Global.Super;

        SuperTimeLeft = 0f;
    }