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

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