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(); }
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(); }
public void SetWindow(LevelHolder levelHolder) { LevelHolderWindow.Init(levelHolder); }