Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- [Serializable]
- public class PlaceObjectData : ScriptableObject
- {
- [SerializeField]
- public bool m_placementMode;
- [SerializeField]
- public int m_selectedIndex;
- [SerializeField]
- public SerializableDictionary<string, SerializableNestedList<GameObject>> m_objects;
- public void OnEnable()
- {
- hideFlags = HideFlags.HideAndDontSave;
- Debug.Log("PlaceObjectData.OnEnable()");
- if (m_objects == null)
- {
- m_objects = ScriptableObject.CreateInstance<SerializableDictionary<string, SerializableNestedList<GameObject>>>();
- Debug.Log("Creating Objects List.");
- }
- m_selectedIndex = 0;
- m_placementMode = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement