public override int GetHashCode() { int hash = 1; if (LevelId != 0) { hash ^= LevelId.GetHashCode(); } if (Star != 0) { hash ^= Star.GetHashCode(); } if (BuyCount != 0) { hash ^= BuyCount.GetHashCode(); } if (Count != 0) { hash ^= Count.GetHashCode(); } if (MaxScore != 0) { hash ^= MaxScore.GetHashCode(); } if (ResetTime != 0L) { hash ^= ResetTime.GetHashCode(); } if (ActivityId != 0) { hash ^= ActivityId.GetHashCode(); } return(hash); }
public ActionResult DeleteConfirmed(int id) { MaxScore maxScore = db.MaxScores.Find(id); db.MaxScores.Remove(maxScore); db.SaveChanges(); return(RedirectToAction("Index")); }
void Start() { maxScore = GameObject.Find("MaxScore").GetComponent <MaxScore>(); effect = GetComponent <AudioSource>(); btnTitle.onClick.AddListener(OnTitle); btnExit.onClick.AddListener(OnExit); SetResultText(); }
private void Start() { maxScore = GameObject.Find("MaxScore").GetComponent <MaxScore>(); effect = GetComponent <AudioSource>(); btnStart.onClick.AddListener(OnStart); btnExit.onClick.AddListener(OnExit); SetMaxScore(maxScore.GetMaxScore()); }
public ActionResult Edit([Bind(Include = "MaxScoreID,MaxScoreType")] MaxScore maxScore) { if (ModelState.IsValid) { db.Entry(maxScore).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(maxScore)); }
public GUIStyle guistyle; // 폰트 스타일. void Start() { this.game_status = this.gameObject.GetComponent <GameStatus>(); this.player_control = GameObject.Find("Player").GetComponent <PlayerControl>(); maxScore = GameObject.Find("MaxScore").GetComponent <MaxScore>(); maxScore.ResetPresentRecord(); this.step = STEP.PLAY; this.next_step = STEP.PLAY; this.guistyle.fontSize = 64; }
public ActionResult Create([Bind(Include = "MaxScoreID,MaxScoreType")] MaxScore maxScore) { if (ModelState.IsValid) { db.MaxScores.Add(maxScore); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(maxScore)); }
// GET: MaxScores/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } MaxScore maxScore = db.MaxScores.Find(id); if (maxScore == null) { return(HttpNotFound()); } return(View(maxScore)); }
public static Offset <MutatorSettings> CreateMutatorSettings(FlatBufferBuilder builder, MatchLength matchLength = MatchLength.Five_Minutes, MaxScore maxScore = MaxScore.Unlimited, OvertimeOption overtimeOption = OvertimeOption.Unlimited, SeriesLengthOption seriesLengthOption = SeriesLengthOption.Unlimited, GameSpeedOption gameSpeedOption = GameSpeedOption.Default, BallMaxSpeedOption ballMaxSpeedOption = BallMaxSpeedOption.Default, BallTypeOption ballTypeOption = BallTypeOption.Default, BallWeightOption ballWeightOption = BallWeightOption.Default, BallSizeOption ballSizeOption = BallSizeOption.Default, BallBouncinessOption ballBouncinessOption = BallBouncinessOption.Default, BoostOption boostOption = BoostOption.Normal_Boost, RumbleOption rumbleOption = RumbleOption.None, BoostStrengthOption boostStrengthOption = BoostStrengthOption.One, GravityOption gravityOption = GravityOption.Default, DemolishOption demolishOption = DemolishOption.Default, RespawnTimeOption respawnTimeOption = RespawnTimeOption.Three_Seconds) { builder.StartObject(16); MutatorSettings.AddRespawnTimeOption(builder, respawnTimeOption); MutatorSettings.AddDemolishOption(builder, demolishOption); MutatorSettings.AddGravityOption(builder, gravityOption); MutatorSettings.AddBoostStrengthOption(builder, boostStrengthOption); MutatorSettings.AddRumbleOption(builder, rumbleOption); MutatorSettings.AddBoostOption(builder, boostOption); MutatorSettings.AddBallBouncinessOption(builder, ballBouncinessOption); MutatorSettings.AddBallSizeOption(builder, ballSizeOption); MutatorSettings.AddBallWeightOption(builder, ballWeightOption); MutatorSettings.AddBallTypeOption(builder, ballTypeOption); MutatorSettings.AddBallMaxSpeedOption(builder, ballMaxSpeedOption); MutatorSettings.AddGameSpeedOption(builder, gameSpeedOption); MutatorSettings.AddSeriesLengthOption(builder, seriesLengthOption); MutatorSettings.AddOvertimeOption(builder, overtimeOption); MutatorSettings.AddMaxScore(builder, maxScore); MutatorSettings.AddMatchLength(builder, matchLength); return(MutatorSettings.EndMutatorSettings(builder)); }
void Start() { collected = GameObject.FindGameObjectWithTag("Score").GetComponent <Score>(); mxScore = GameObject.FindGameObjectWithTag("MaxScore").GetComponent <MaxScore>(); }
public override string GetStatusReadout() { return(Score.ToString() + " / " + MaxScore.ToString()); //this prints the current score }
// Use this for initialization void Start() { instance = this; label = GetComponent <UILabel>(); label.text = "Best:" + GameDataManager.instance.gameData.PlayerScore.ToString(); }
void Update() { //Time Game TimeGame += Time.deltaTime; //Time Cooldown Cooldown -= Time.deltaTime; Movment(); ScoreCount(); //UI interface SpeedText.text = "Speed: " + SpeedNow.ToString(); ScoreText.text = "Score: " + Score.ChangeScore(); DataGameOver.text = "Score: " + Score.ToString() + "\n" + "Time Game: " + CountTime.ToString() + "\n" + "Asteroid Count: " + CountAsteroid.ToString() + "\n" + "Max Score Game: " + MaxScore.ToString() + "\n" + "Max Asteroid Count: " + MaxAsteroid.ToString(); }
public static void AddMaxScore(FlatBufferBuilder builder, MaxScore maxScore) { builder.AddSbyte(1, (sbyte)maxScore, 0); }
public override string GetStatusReadout() { return(Score + " / " + MaxScore.ToString()); //Getstatusreadout returns the score of bowling pins knocked down. }
public string GetCountryInCsv() { return($"{CountryName};{AverageScore.ToString()};{MedianScore.ToString()};{MaxScore.ToString()};{MaxScorePerson};{MinScore.ToString()};{MinScorePerson};{RecordCount.ToString()}"); }
public override string ToString() { return($"{Name} - Avg: {AverageScore.ToString("F3")}, Max: {MaxScore.ToString("F3")}"); }
public override string GetStatusReadout() { return(Score.ToString() + " / " + MaxScore.ToString()); }
public void Reset() { MaxScore.Save("0"); }