private void OnEnable()
        {
            Time.timeScale = 1f;

            _txtScore.text = $"Score: {_score.Value.ToString()}";

            RecordScore.SaveScore(_score.Value);
        }
Esempio n. 2
0
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Probability?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (RecordScore?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (InitialRecordScore?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (PartitionFieldValue?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Timestamp?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Typical?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Actual?.GetHashCode() ?? 0);
            return(hashCode);
        }
Esempio n. 3
0
    private void Awake()
    {
        recordScore = new RecordScore();

        txtScore.text = recordScore.GetScore().ToString();
    }
Esempio n. 4
0
 private void Awake()
 {
     _txtScore.text = RecordScore.GetScore().ToString();
 }