示例#1
0
 private void OnEnable()
 {
     writer = (UIWriter)target;
     serializedCallingInstance = serializedObject.FindProperty(CALLING_INSTANCE);
     serializedDataName        = serializedObject.FindProperty(DATA_NAME);
     serializedIndexName       = serializedObject.FindProperty(INDEX_PROP);
 }
示例#2
0
        public void CreateResultsWithGuessAndMark()
        {
            var          uiRenderer = new UIWriter();
            const string guess      = "r,g,y,c";
            const string mark       = "b,b,b,b";
            const string expected   = "Guess: r,g,y,c\nMark: b,b,b,b";

            var result = uiRenderer.CreateResultMessage(guess, mark);

            Assert.AreEqual(expected, result);
        }
示例#3
0
    //public SaveManager save;

    void Update()
    {
        UIWriter.SkorYaz(_score, NesneBul.TextBul("ScoreText"));
        UIWriter.KomboYaz(_comboCount, NesneBul.TextBul("ComboText"));
        if (_comboTimer <= 0)
        {
            _comboCount = 1;
            _comboTimer = 0;
        }
        //save.Save((int)_score);
        _comboTimer -= Time.deltaTime;

        //UIText.ScoreText(_score);
        //UIText.ComboText(_comboCount);
    }