Example #1
0
        public static Transform FindGet(
            string findType,
            string childName,
            string otherRootName,
            CommandController commandController)
        {
            Transform root = ObjectEx.FindRoot(findType, commandController);

            if (UnityEngine.Object.op_Equality((UnityEngine.Object)root, (UnityEngine.Object)null))
            {
                root = GameObject.Find(otherRootName).get_transform();
            }
            if (!childName.IsNullOrEmpty())
            {
                root = ObjectEx.FindChild(root, childName);
            }
            return(root);
        }