示例#1
0
        // ------------------------------------------------------------------------- Helper Methods
        // -- Helper Methods ----------------------------------------------------------------------

        #region Helper Methods

        // ----------------------------------------------------- Initialization
        // -- Initialization --------------------------------------------------
        void FindNeededReferences()
        {
            if (referenceManager == null)
            {
                referenceManager = FindObjectOfType <ReferenceManager>();
            }
            dataPath   = Application.dataPath;
            pathString = dataPath.Substring(0, dataPath.Length - "Assets".Length);
            savePath   = $"{pathString}/ObjectReferenceData/";
            pathExists = PathTools.CreateIfNotExists(savePath);
        }