示例#1
0
 public void OnMassChange(OnMassChangeEvent massEvt)
 {
     if (rigidbody)
     {
         rigidbody.mass = rigidbody.mass * (massEvt.AdditionalScale + massEvt.MultiplierScale);
     }
 }
示例#2
0
 public void OnMassChange(OnMassChangeEvent massEvt)
 {
     if (rigidbody)
     {
         rigidbody.mass = rigidbody.mass * (massEvt.AdditionalScale + massEvt.MultiplierScale);
     }
 }