Пример #1
0
        protected void TryCacheJson()
        {
            LDtkJsonFile <T> file = (LDtkJsonFile <T>)target;

            Assert.IsNotNull(file);

            if (JsonData == null)
            {
                JsonData = file.FromJson;
            }
        }
Пример #2
0
        public override void OnInspectorGUI()
        {
            LDtkJsonFile <T> file = (LDtkJsonFile <T>)target;

            Assert.IsNotNull(file);

            if (_cachedData == null)
            {
                _cachedData = file.FromJson;
            }
            Assert.AreNotEqual(_cachedData, default);

            DrawInspectorGUI(_cachedData);
        }