public override void OnObjectUnsnappedFromDropZone(SnapDropZoneEventArgs e) { base.OnObjectUnsnappedFromDropZone(e); Burner burner = transform.parent.GetComponent <Burner>(); burner.lidIsOn = false; }
public override void OnObjectSnappedToDropZone(SnapDropZoneEventArgs e) { base.OnObjectSnappedToDropZone(e); Burner burner = transform.parent.GetComponent <Burner>(); burner.PutOutFire(); burner.lidIsOn = true; }