void OnTriggerEnter(Collider other)
 {
     if (isGood && other.name == "bottle")
     {
         AirTransmit thisAir  = transform.GetComponent <AirTransmit>(),
                     otherAir = other.transform.GetComponent <AirTransmit>();
         AirTransmit.Connect(thisAir, otherAir);
     }
 }
Exemple #2
0
        public override void OnObjectSnappedToDropZone(SnapDropZoneEventArgs e)
        {
            base.OnObjectSnappedToDropZone(e);
            AirTransmit air = transform.parent.GetComponent <AirTransmit>();

            AirTransmit.Connect(air, e.snappedObject.GetComponent <AirTransmit>());
            TipBoard.Progress(0, 0);
            TipBoard.Progress(1, 5);
        }