public void Follow(Transform trans) { if (!isFollowing && null != trans) { isFollowing = true; Follow3DBy2D.FollowTrans(itemGo, trans, Vector3.zero); } }
public void BarChangeFollower(int ownerId, Transform followTrans) { if (bars.ContainsKey(ownerId)) { GameObject bar = bars[ownerId]; if (null != bar) { Follow3DBy2D.FollowTrans(bar, followTrans, Vector3.zero); } } }
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); }
public void Follow(Transform followee) { Follow3DBy2D.FollowTrans(CachedGo, followee, new Vector3(0, 0.5f, 0)); }