Ejemplo n.º 1
0
        public void ReferenceInvalidated()
        {
            string testData1 = "TestData1";
            string testData2 = "TestData2";

            EntityRef <GameObject> reference = pool.Create(new GameObject {
                Data = testData1
            });

            reference.Remove();
            pool.EndOfFrame();

            Assert.IsFalse(reference.Get(out GameObject _));

            pool.Create(new GameObject {
                Data = testData2
            });
            Assert.IsFalse(reference.Get(out GameObject _));
        }