Пример #1
0
        public IEnumerator SaveLoadColor32()
        {
            Color32 color = new Color32(64, 128, 192, 255);

            PDBSave.Save("ColorTest32", color);
            Color32 newColor = PDBLoad.LoadColor("Color32Test");

            Assert.AreEqual(color.r, newColor.r);
            Assert.AreEqual(color.g, newColor.g);
            Assert.AreEqual(color.b, newColor.b);
            Assert.AreEqual(color.a, newColor.a);
            yield return(null);
        }
Пример #2
0
        public IEnumerator SaveLoadColor()
        {
            Color color = new Color(0.3f, 0.4f, 0.6f, 0.3f);

            PDBSave.Save("ColorTest", color);
            Color newColor = PDBLoad.LoadColor("ColorTest");

            Assert.AreEqual(color.r, newColor.r);
            Assert.AreEqual(color.g, newColor.g);
            Assert.AreEqual(color.b, newColor.b);
            Assert.AreEqual(color.a, newColor.a);
            yield return(null);
        }