Ejemplo n.º 1
0
        public void ReparentFlippers(PrimitiveComponent primitive, GameObject gameObject, ref GameObject parent)
        {
            PatcherUtil.Reparent(gameObject, parent);

            primitive.Position   = Vector3.zero;
            primitive.Rotation.y = 0;
        }
Ejemplo n.º 2
0
 public void ReparentFlippers(Primitive flipper, GameObject gameObject, ref GameObject parent)
 {
     PatcherUtil.Reparent(gameObject, parent);
     gameObject.transform.localPosition = new Vector3(0, 0, 0);
     gameObject.transform.localRotation = Quaternion.identity;
     flipper.Data.Position.X            = 0;
     flipper.Data.Position.Y            = 0;
 }
Ejemplo n.º 3
0
        public void ReparentFlipper(FlipperComponent flipper, GameObject go, ref GameObject parent)
        {
            PatcherUtil.Reparent(go, parent);
            PatcherUtil.Hide(go.GetComponentInChildren <FlipperRubberMeshComponent>().gameObject);

            flipper.Position.x  = 0;
            flipper.Position.y  = 0;
            flipper._startAngle = 0;
        }
Ejemplo n.º 4
0
        public void ReparentFlippers(PrimitiveComponent flipper, GameObject gameObject, ref GameObject parent)
        {
            PatcherUtil.Reparent(gameObject, parent);

            flipper.Position.x = 0;
            flipper.Position.y = 0;

            flipper.ObjectRotation.z = 0;
        }
Ejemplo n.º 5
0
        public void ReparentFlippers(PrimitiveComponent flipper, GameObject gameObject, ref GameObject parent)
        {
            PatcherUtil.Reparent(gameObject, parent);

            flipper.Position.x = 0;
            flipper.Position.y = 0;

            // // rotation is set in the original data, reparenting caused the flippers to be rotated wrong => fixing the rotation
            flipper.Rotation.y = 0;
        }
Ejemplo n.º 6
0
 public void HideGameObject(GameObject gameObject)
 {
     PatcherUtil.Hide(gameObject);
 }
Ejemplo n.º 7
0
 public void SetOpaque(GameObject gameObject)
 {
     PatcherUtil.SetOpaque(gameObject);
 }
Ejemplo n.º 8
0
 public void SetAlphaCutOffEnabled(GameObject gameObject)
 {
     PatcherUtil.SetAlphaCutOffEnabled(gameObject);
 }
Ejemplo n.º 9
0
 public void ReparentFlippers(GameObject gameObject, ref GameObject parent)
 {
     PatcherUtil.Reparent(gameObject, parent);
 }
Ejemplo n.º 10
0
 public void FixBrokenNormalMap(GameObject gameObject)
 {
     PatcherUtil.SetNormalMapDisabled(gameObject);
 }
Ejemplo n.º 11
0
 public void SetMetallic(GameObject gameObject)
 {
     PatcherUtil.SetMetallic(gameObject, 1.0f);
 }
Ejemplo n.º 12
0
 [NameMatch("Primitive66")]         // jerry at plunger
 public void SetDoubleSided(GameObject gameObject)
 {
     PatcherUtil.SetDoubleSided(gameObject);
 }
Ejemplo n.º 13
0
 public void SetAlphaClip(GameObject gameObject)
 {
     PatcherUtil.SetAlphaCutOff(gameObject, 0.05f);
 }