Beispiel #1
0
        public void EnsureDirectionCurrentGameObjectsDynamicCalled()
        {
            var l = new Log();
            var t = ParticleType.Direction;
            DirectionParticle p = ParticleFactory.Get(t, l)
                                  as DirectionParticle;

            p.CurrentGameObjects();
            var val = l.Get("DirectionParticle#CurrentGameObjects");

            Assert.AreEqual(val, 1);
        }
Beispiel #2
0
        public void EnsureDirectionnAllDynamicCalled()
        {
            var l = new Log();
            var t = ParticleType.Direction;
            DirectionParticle p = ParticleFactory.Get(t, l)
                                  as DirectionParticle;
            var go = new GameObject("test");
            var rb = go.AddComponent <Rigidbody>();

            Assert.AreEqual(l.Get("BaseParticle#Load"), 1);
            p.Run(go.GetComponent <Rigidbody>());
            Assert.AreEqual(l.Get("DirectionParticle#Run"), 1);
            p.CurrentGameObjects();
            var val = l.Get("DirectionParticle#CurrentGameObjects");

            Assert.AreEqual(val, 1);
        }