Example #1
0
        public static void DetachActorRoot(GameObject go)
        {
            ActorConfig component = go.GetComponent <ActorConfig>();

            if (component != null)
            {
                component.DetachActorRoot();
            }
        }
Example #2
0
        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();
            }
        }