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