Example #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);
 }
Example #2
0
 /// <summary>
 /// 实体解除子实体。
 /// </summary>
 /// <param name="childEntity">解除的子实体。</param>
 /// <param name="userData">用户自定义数据。</param>
 protected internal virtual void OnDetached(GEntityLogic childEntity, object userData)
 {
 }
Example #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);
 }
Example #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)
 {
 }