Example #1
0
        public static void Init()
        {
            LevelHolderWindow window = EditorWindow.GetWindow(typeof(LevelHolderWindow)) as LevelHolderWindow;

            window.templateLevelHolder = Resources.Load <LevelHolder>("LevelHolder");
            window.templateLevelChunk  = Resources.Load <LevelChunk>("LevelChunk");

            // Initialize window : start de la fenĂȘtre

            window.Show();
        }
Example #2
0
        public static void Init(LevelHolder holder)
        {
            LevelHolderWindow window = EditorWindow.GetWindow(typeof(LevelHolderWindow)) as LevelHolderWindow;


            // Initialize window : start de la fenĂȘtre
            window.levelHolder        = holder;
            window.serializedObject   = new SerializedObject(window.levelHolder);
            window.chunksArray        = window.serializedObject.FindProperty(nameof(window.levelHolder.levelChunks));
            window.curveProperty      = window.serializedObject.FindProperty(nameof(window.levelHolder.curve));
            window.keysValueProperty  = window.serializedObject.FindProperty(nameof(window.levelHolder.keysValue));
            window.templateLevelChunk = Resources.Load <LevelChunk>("LevelChunk");



            window.Show();
        }