/// Used by the path editor to initialise some data
        public void InitializeEditorData(bool in2DMode)
        {
            if (editorData == null)
            {
                editorData = new PathCreatorData();
            }
            editorData.bezierOrVertexPathModified -= OnPathUpdated;
            editorData.bezierOrVertexPathModified += OnPathUpdated;

            editorData.Initialize(transform.position, in2DMode);
            initialized = true;
        }
Exemple #2
0
        /// Used by the path editor to initialise some data
        public void InitializeEditorData(bool in2DMode)
        {
            if (editorData == null)
            {
                editorData = new PathCreatorData();
            }
            editorData.bezierOrVertexPathModified -= TriggerPathUpdate;
            editorData.bezierOrVertexPathModified += TriggerPathUpdate;

            editorData.Initialize(in2DMode);
            initialized = true;
        }