Beispiel #1
0
        public override void OnDrawInspector()
        {
#if UNITY_EDITOR
            GUILayout.Space(10);
            this.ID                    = UnityEditor.EditorGUILayout.IntField("ID", this.ID);
            this.Name                  = UnityEditor.EditorGUILayout.TextField("Name", this.Name);
            this.DestMapID             = UnityEditor.EditorGUILayout.IntField("DestMapID", this.DestMapID);
            this.DestPos               = UnityEditor.EditorGUILayout.Vector3Field("DestPos", this.DestPos);
            this.OpenConditionRelation = (EOpenConditionRelation)UnityEditor.EditorGUILayout.EnumPopup("OpenConditionRelation", OpenConditionRelation);
            this.OpenLevel             = UnityEditor.EditorGUILayout.IntField("OpenLevel", this.OpenLevel);
            this.OpenItemID            = UnityEditor.EditorGUILayout.IntField("OpenItemID", this.OpenItemID);
            this.OpenVIP               = UnityEditor.EditorGUILayout.IntField("OpenVIP", this.OpenVIP);
            GUILayout.Space(5);
#endif
        }
Beispiel #2
0
        public override void Import(DCFG cfg)
        {
            MapPortal data = new MapPortal();

            this.ID                    = data.ID;
            this.Name                  = data.Name;
            this.DestMapID             = data.DestMapID;
            this.DestPos               = data.DestPos;
            this.OpenConditionRelation = (EOpenConditionRelation)data.OpenConditionRelation;
            this.OpenLevel             = data.OpenLevel;
            this.OpenItemID            = data.OpenItemID;
            this.OpenVIP               = data.OpenVIP;
            this.Pos                   = data.Pos;
            this.Scale                 = data.Scale;
        }