public static void DetachActorRoot(GameObject go) { ActorConfig component = go.GetComponent <ActorConfig>(); if (component != null) { component.DetachActorRoot(); } }
public static void DetachActorRoot(GameObject go) { ActorConfig component = go.GetComponent <ActorConfig>(); if (component != null) { DebugHelper.Assert(!component.GetActorHandle() || component.GetActorHandle().get_handle().TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Bullet); component.DetachActorRoot(); } }