public void Set_Magnet(KnifeMagnetArea magnet) { mainKnife.transform.SetParent(this.transform.root); this.magnetArea = magnet; GetComponentInParent <Collider2D>().enabled = true; rb.WakeUp(); }
public void Set_Magnet(KnifeMagnetArea magnet) { mainKnife.transform.SetParent(this.transform.root); this.magnetArea = magnet; knifeCol = GetComponentInParent <Collider2D>(); rb.isKinematic = false; }