public SerializedSceneVariableCollection(SceneVariableContainer variableContainer)
        {
            SceneVariablesContainer = variableContainer;

            SerializedContainer = new SerializedObject(variableContainer);

            VariableListProp = SerializedContainer.FindProperty("sceneVariables");
        }
        public void InitializeVariablesList(SceneVariableContainer variablesContainer)
        {
            IEnumerable <KeyValuePair <string, Type> > varDetails =
                variablesContainer.GetVariableDetails();

            List <VariableDetails> details = new List <VariableDetails>();

            foreach (var varDetail in varDetails)
            {
                VariableDetails detail = new VariableDetails(varDetail.Key, varDetail.Value);
                details.Add(detail);
            }

            VariablesList = details.ToArray();
        }