Ejemplo n.º 1
0
        protected override void BeginPlay()
        {
            base.BeginPlay();
            m_Root  = Actor.GetComponentByTag <StaticMeshComponent>("root");
            m_Child = Actor.GetComponentByTag <StaticMeshComponent>("child");
            if (m_Root == null)
            {
                Log.Print("root is null");
                return;
            }
            if (m_Child == null)
            {
                Log.Print("child is null");
                return;
            }

            m_Child.AttachTo(m_Root);
            //m_Child.AttachToSocket(m_Root, "Socket");
        }