Beispiel #1
0
        public string GetRootPath()
        {
            string pre = string.Empty;

            if (!Father.IsNull)
            {
                pre = Father.GetObject(File).GetRootPath() + "/";
            }
            return(pre + GameObject.GetObject(File).Name);
        }
Beispiel #2
0
        public override IEnumerable <Object> FetchDependencies(ISerializedFile file, bool isLog = false)
        {
            foreach (Object @object in base.FetchDependencies(file, isLog))
            {
                yield return(@object);
            }

            foreach (PPtr <Transform> ptr in Children)
            {
                yield return(ptr.GetObject(file));
            }
            if (!Father.IsNull)
            {
                yield return(Father.GetObject(file));
            }
        }