Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public override void OnSCDestroy()
 {
     base.OnSCDestroy();
     GetKeyModule   = null;
     inputDataGetKS = null;
 }
Esempio n. 3
0
 public override void OnSCDisable()
 {
     base.OnSCDisable();
     RemoveAllModule();
     GetKeyModule = null;
 }