void OnDisable()
 {
     type = 0;
 }
 void OnEnable()
 {
     type = 0;
 }