public override void OnSCStart() { base.OnSCStart(); if (inputDataGetKS.inputDeviceKSPart.inputDataGC.GCType == GCType.K102) { GetKeyModule = new GetK102Key(this); } else if (inputDataGetKS.inputDeviceKSPart.inputDataGC.GCType == GCType.K101) { GetKeyModule = new GetK101Key(this); } else if (inputDataGetKS.inputDeviceKSPart.inputDataGC.GCType == GCType.K11) { GetKeyModule = new GetK11Key(this); } AddModule(GetKeyModule); GetKeyModule.ModuleStart(); }
public override void OnSCDestroy() { base.OnSCDestroy(); GetKeyModule = null; inputDataGetKS = null; }
public override void OnSCDisable() { base.OnSCDisable(); RemoveAllModule(); GetKeyModule = null; }