description import { Service } from "../base/Service" ; export function injectService ( service ) { return function ( target ) { let __load = target . prototype . onLoad ; target . prototype . onLoad = function ( ) { if ( CC_DEBUG ) cc . log ( `[injectService] ${ cc . js . getClassName ( this ) } ---onLoad----` ) ; this . service = service ; __load && __load . call ( this ) ; } ; } ; } description param mainCmd param subCmd export function makeKey ( mainCmd , subCmd ) { let key = `[${ mainCmd }]:[${ subCmd }]` ; return key ; }