示例#1
0
 public void Follow(Transform trans)
 {
     if (!isFollowing && null != trans)
     {
         isFollowing = true;
         Follow3DBy2D.FollowTrans(itemGo, trans, Vector3.zero);
     }
 }
示例#2
0
 public void BarChangeFollower(int ownerId, Transform followTrans)
 {
     if (bars.ContainsKey(ownerId))
     {
         GameObject bar = bars[ownerId];
         if (null != bar)
         {
             Follow3DBy2D.FollowTrans(bar, followTrans, Vector3.zero);
         }
     }
 }
示例#3
0
        public Transform AddBar(int ownerId, Transform followTrans, Vector3 followDelta)
        {
            GameObject bar = CreateBar();

            Follow3DBy2D.FollowTrans(bar, followTrans, followDelta);
            if (bars.ContainsKey(ownerId))
            {
                Debug.LogError("Repeat KEY!!!:" + ownerId);
            }
            if (!bars.ContainsKey(ownerId))
            {
                bars.Add(ownerId, bar);
            }
            return(bar.transform);
        }
示例#4
0
 public void Follow(Transform followee)
 {
     Follow3DBy2D.FollowTrans(CachedGo, followee, new Vector3(0, 0.5f, 0));
 }