Beispiel #1
0
    // Use this for initialization
    void Awake()
    {
        allStarters.Clear();
        allStarters.AddRange(starterRules.GetComponentsInChildren <Rule>());

        allRules.Clear();
        allRules.AddRange(restOfTheRules.GetComponentsInChildren <Rule>());
    }
Beispiel #2
0
        public void ClearList()
        {
            // Arrange
            var randList = new RandomList <int>();

            for (int i = 0; i < 10; i++)
            {
                randList.Add(i);
            }

            // Act
            randList.Clear();

            // Assert
            Assert.True(0 == randList.Count);
        }
Beispiel #3
0
 public void reset()
 {
     actions.Clear();
     timePassed = 0.seconds();
 }