public override void OnInspectorGUI() { sceneMaker = (SceneMaker)target; GUILayout.Label(string.Format("Set the map size")); EditorGUILayout.BeginHorizontal(); sceneMaker.mapheigth = EditorGUILayout.IntField("MapHeight", sceneMaker.mapheigth); sceneMaker.mapwidth = EditorGUILayout.IntField("MapWidth", sceneMaker.mapwidth); EditorGUILayout.EndHorizontal(); serializedObject.Update(); EditorGUILayout.PropertyField(serializedObject.FindProperty("UpPrefab"), true); EditorGUILayout.PropertyField(serializedObject.FindProperty("DownPrefab"), true); EditorGUILayout.PropertyField(serializedObject.FindProperty("PortalPrefab"), true); EditorGUILayout.PropertyField(serializedObject.FindProperty("RoadPrefab"), true); EditorGUILayout.PropertyField(serializedObject.FindProperty("CornerPrefab"), true); EditorGUILayout.PropertyField(serializedObject.FindProperty("RoomPrefab"), true); EditorGUILayout.PropertyField(serializedObject.FindProperty("EndPrefab"), true); EditorGUILayout.PropertyField(serializedObject.FindProperty("WallPrefab"), true); serializedObject.ApplyModifiedProperties(); if (GUILayout.Button("Create Start")) { sceneMaker.CreateStart(); } }
private void loadShrine() { //if (onScene.ContainsKey(destinyShrine)) //{ // SetActors(); // return; //} onScene.Clear(); SceneMaker.getInstance().loadShrine(destinyShrine); //foreach (WarpOptions warp in options) //{ // foreach (Commandments.Shrines destiny in warp.shrines) // { // if (destiny == destinyShrine) // { // onScene.Clear(); // gameManager.PersistObjets(); // SceneManager.LoadScene(warp.scene); // return; // } // } //} }
private void Awake() { this.objetivos = new List <string>(); SceneMaker.setLevelAndroid("Level1.json"); this.deck = SceneMaker.getCurrentdeck(); ScoreManager.Instance.AddSub(this); }
void Awake() { if (sceneMaker == null) { sceneMaker = this; } else { Destroy(gameObject); return; } }
private void Awake() { SceneMaker.setLevelAndroid("Tutorial.json"); this.deck = SceneMaker.getCurrentdeck(); ScoreManager.Instance.AddSub(this); }
void Awake() { _instance = this; }