示例#1
0
 public override void OnStart(StartState state)
 {
     base.OnStart(state);
     if (state == StartState.Editor || state == StartState.None)
     {
         return;
     }
     Events["Activate"].guiName = activateText;
     KIS_Shared.createFXSound(this.part, fxSndTimeStart, timeStartSndPath, false);
     KIS_Shared.createFXSound(this.part, fxSndTimeLoop, timeLoopSndPath, true);
     KIS_Shared.createFXSound(this.part, fxSndTimeEnd, timeEndSndPath, false);
 }