示例#1
0
        public override void OnBlockRemoved()
        {
            base.OnBlockRemoved();

            if (labelrenderer != null)
            {
                labelrenderer.Unregister();
                labelrenderer = null;
            }
        }
示例#2
0
 public override void OnBlockBroken()
 {
     base.OnBlockBroken();
     labelrenderer?.Unregister();
 }