Beispiel #1
0
        public void AmmoLoader_SetProjectile_ReturnType()
        {
            int        index          = 0;
            Projectile expectedResult = ammoLoader.projectileTypes[index];

            poolManager.Peek(expectedResult).Returns(expectedResult);

            ammoLoader.SetType(index);

            Assert.AreEqual(expectedResult, ammoLoader.GetCurrentType());
        }
Beispiel #2
0
 // Look at the next projectile of current type.
 public Projectile GetCurrentType()
 {
     return(pooler.Peek(currentType) as Projectile);
 }