Exemplo n.º 1
0
        public override void OnObjectUnsnappedFromDropZone(SnapDropZoneEventArgs e)
        {
            base.OnObjectUnsnappedFromDropZone(e);
            Burner burner = transform.parent.GetComponent <Burner>();

            burner.lidIsOn = false;
        }
Exemplo n.º 2
0
        public override void OnObjectSnappedToDropZone(SnapDropZoneEventArgs e)
        {
            base.OnObjectSnappedToDropZone(e);
            Burner burner = transform.parent.GetComponent <Burner>();

            burner.PutOutFire();
            burner.lidIsOn = true;
        }