コード例 #1
0
    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();
        }
    }
コード例 #2
0
    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;
        //        }
        //    }
        //}
    }
コード例 #3
0
 private void Awake()
 {
     this.objetivos = new List <string>();
     SceneMaker.setLevelAndroid("Level1.json");
     this.deck = SceneMaker.getCurrentdeck();
     ScoreManager.Instance.AddSub(this);
 }
コード例 #4
0
 void Awake()
 {
     if (sceneMaker == null)
     {
         sceneMaker = this;
     }
     else
     {
         Destroy(gameObject);
         return;
     }
 }
コード例 #5
0
 private void Awake()
 {
     SceneMaker.setLevelAndroid("Tutorial.json");
     this.deck = SceneMaker.getCurrentdeck();
     ScoreManager.Instance.AddSub(this);
 }
コード例 #6
0
ファイル: SceneMaker.cs プロジェクト: tsss-t/SimpleStory
 void Awake()
 {
     _instance = this;
 }