public void Init(Contexts contexts) { _contexts = contexts; _inputButton = contexts.input.gameInputButton; //在new方法中自己定义的函数 _entitaInputService = contexts.service.gameServiceEntitasInputService.EntitasInputService; }
public void Init(Contexts contexts) { _inputButton = contexts.input.gameInputButton; _entitaInputService = contexts.service.gameServiceEntitasInputService.EntitasInputService; }