Example #1
0
        public static HitTargetBehavior SetupGameObject(this Engine.VPT.HitTarget.HitTarget hitTarget, GameObject obj, RenderObjectGroup rog)
        {
            var ic = obj.AddComponent <HitTargetBehavior>().SetData(hitTarget.Data);

            obj.AddComponent <ConvertToEntity>();
            return(ic as HitTargetBehavior);
        }