public void RetrieveWitnessMessages(Offence offence) { OffenceController offenceController = new OffenceController(); Scraper WitnessScraper = new Scraper(offence, true, offenceController.Hashtag(offence)); WitnessScraper.UpdateSocialMediaMessages(1); }
// Use this for initialization void Start() { targets = GameObject.FindGameObjectsWithTag("Target"); goalie = GameObject.FindGameObjectWithTag("Player"); offenceController = GameObject.FindGameObjectWithTag("GameController")?.GetComponent <OffenceController>(); DeactivateTargets(); }
// 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"); }
/// <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); }
// 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)); }
// 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>(); }