public void FloatVariableTest_Subtracts()
    {
        float         expected = -123f;
        FloatVariable actual   = ScriptableObject.CreateInstance <FloatVariable>();

        actual.Add(-123f);
        Assert.AreEqual(expected, actual.Value);
    }
Example #2
0
 void Update()
 {
     timer += Time.deltaTime;
     if (timer >= addScoreTimer)
     {
         score.Add(scoreToAdd);
         timer = 0f;
     }
 }
 public void AddEnemyPoints()
 {
     TotalKills.Add(1);
     TotalScore.Add((Enemy.scoringPoints));
 }