示例#1
0
 /// <summary>
 /// 实体解除子实体。
 /// </summary>
 /// <param name="parentEntity">被解除的父实体。</param>
 /// <param name="userData">用户自定义数据。</param>
 protected internal virtual void OnDetachFrom(GEntityLogic parentEntity, object userData)
 {
     CachedTransform.SetParent(m_OriginalTransform);
 }
示例#2
0
 /// <summary>
 /// 实体解除子实体。
 /// </summary>
 /// <param name="childEntity">解除的子实体。</param>
 /// <param name="userData">用户自定义数据。</param>
 protected internal virtual void OnDetached(GEntityLogic childEntity, object userData)
 {
 }
示例#3
0
 /// <summary>
 /// 实体附加子实体。
 /// </summary>
 /// <param name="parentEntity">被附加的父实体。</param>
 /// <param name="parentTransform">被附加父实体的位置。</param>
 /// <param name="userData">用户自定义数据。</param>
 protected internal virtual void OnAttachTo(GEntityLogic parentEntity, Transform parentTransform, object userData)
 {
     CachedTransform.SetParent(parentTransform);
 }
示例#4
0
 /// <summary>
 /// 实体附加子实体。
 /// </summary>
 /// <param name="childEntity">附加的子实体。</param>
 /// <param name="parentTransform">被附加父实体的位置。</param>
 /// <param name="userData">用户自定义数据。</param>
 protected internal virtual void OnAttached(GEntityLogic childEntity, Transform parentTransform, object userData)
 {
 }