コード例 #1
0
        public void RetrieveWitnessMessages(Offence offence)
        {
            OffenceController offenceController = new OffenceController();
            Scraper           WitnessScraper    = new Scraper(offence, true, offenceController.Hashtag(offence));

            WitnessScraper.UpdateSocialMediaMessages(1);
        }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     targets           = GameObject.FindGameObjectsWithTag("Target");
     goalie            = GameObject.FindGameObjectWithTag("Player");
     offenceController = GameObject.FindGameObjectWithTag("GameController")?.GetComponent <OffenceController>();
     DeactivateTargets();
 }
コード例 #3
0
    // Use this for initialization
    void Start()
    {
        scoreUI           = GameObject.FindGameObjectWithTag("Score");
        timeUI            = GameObject.FindGameObjectWithTag("Timer");
        streakUI          = GameObject.Find("Streak");
        pauseController   = GetComponent <PauseController>();
        offenceController = GetComponent <OffenceController>();
        StartCoroutine(Scoreboard());

        timeUI.GetComponent <Text>().text = TimeSpan.FromSeconds(gameLength).ToString(@"m\:ss");
    }
コード例 #4
0
        /// <summary>
        /// Adds an offence to the list of offences for this window.
        /// </summary>
        /// <param name="description">offence description</param>
        /// <param name="category">offence Categorie(enum value)</param>
        /// <param name="dateTime">offence date and time</param>
        /// <param name="location">offence location</param>
        public static void AddOffence(string description, OffenceCategories category, DateTime dateTime, Location location)
        {
            OffenceController offenceController = new OffenceController();
            Offence           offence           = new Offence(dateTime, description, location, category);

            offence.ID = offenceController.SetOffence(offence);

            new Scraper(offence).SetSocialMediaMessages();

            _offences.Add(offence);
        }
コード例 #5
0
ファイル: GameController.cs プロジェクト: Curttree/UnityGames
 // Use this for initialization
 void Start()
 {
     Time.timeScale    = 1f;
     offenceController = GameObject.FindGameObjectWithTag("GameController")?.GetComponent <OffenceController>();
     scoreController   = GameObject.FindGameObjectWithTag("GameController")?.GetComponent <ScoreController>();
     pause             = GameObject.FindGameObjectWithTag("GameController")?.GetComponent <PauseController>();
     UpdateSVPercent();
     //if (Application.platform == RuntimePlatform.Android)
     Screen.SetResolution(960, 640, true);
     StartCoroutine(LateStart(0.1f));
 }
コード例 #6
0
 // Use this for initialization
 void Start()
 {
     rend               = GetComponent <SpriteRenderer>();
     goalHorn           = GameObject.FindGameObjectWithTag("GoalHorn");
     goalie             = GameObject.FindGameObjectWithTag("Player");
     gameController     = GameObject.FindGameObjectWithTag("GameController");
     musicController    = gameController.GetComponent <MusicController>();
     crowd              = GameObject.FindGameObjectWithTag("Crowd");
     scoreController    = gameController.GetComponent <ScoreController>();
     offenceController  = gameController.GetComponent <OffenceController>();
     goalLightsRenderer = GameObject.FindGameObjectWithTag("GoalLights").GetComponent <SpriteRenderer>();
     targetAnimation    = GetComponent <Animator>();
 }