// Combine with product A, destroying it and making a capsule
        public override void Interact(PrimitiveA a)
        {
            CombineWith(a);

            ReplaceWithCapsule();
        }
 public abstract void Interact(PrimitiveA a);
 // Interact with another like product
 public override void Interact(PrimitiveA a)
 {
     CombineWith(a);
 }
Ejemplo n.º 4
0
 public abstract void Interact(PrimitiveA a);
 public override void Interact(PrimitiveA a)
 {
     CombineWith(a);
 }
 public override void Interact(PrimitiveA a)
 {
     gameObject.transform.Rotate(new Vector3(0f, 0f, a.gameObject.transform.eulerAngles.z + 45f));
     CombineWith(a);
 }
 public override void Interact(PrimitiveA a)
 {
     gameObject.transform.Rotate(new Vector3(0f, 0f, a.gameObject.transform.eulerAngles.z + 45f));
     CombineWith(a);
     
 }
Ejemplo n.º 8
0
        // Combine with product A, destroying it and making a capsule
        public override void Interact(PrimitiveA a)
        {
            CombineWith(a);

            ReplaceWithCapsule();
        }