Esempio n. 1
0
        /// <summary>
        /// 通过父物体名称获取父物体对象
        /// </summary>
        /// <param name="parentName"></param>
        /// <returns></returns>
        public Transform GetParnetTrans(ParentName parentName)
        {
            Transform parnet = null;

            _parentDic.TryGetValue(parentName.ToString(), out parnet);
            return(parnet);
        }
Esempio n. 2
0
 private void Awake()
 {
     if (Application.isEditor && !alreadyPlaced)
     {
         transform.parent = GameObject.Find(parentName.ToString()).transform;
         alreadyPlaced    = true;
     }
 }
Esempio n. 3
0
        public Transform GetParentTrans(ParentName parentName)
        {
            Transform parent;

            _parentName.TryGetValue(parentName.ToString(), out parent);
            _parentName.UtilDebugLogNull();

            return(parent);
        }
Esempio n. 4
0
 public override string ToString()
 {
     return(Name.ToString() + ", " +
            ParentName.ToString() + ", " +
            ContentFlags.ToString() + ", " +
            streamingExtentsMin.ToString() + ", " +
            streamingExtentsMax.ToString() + ", " +
            entitiesExtentsMin.ToString() + ", " +
            entitiesExtentsMax.ToString());// + ", " +
 }