You should download Breakable Glass Asset(https://www.assetstore.unity3d.com/en/#!/content/9800) These scripts in this asset may have answer to your question.
↧