/// <summary> /// 注入命令系统 /// </summary> private void Start() { goUndo = GameObject.Find("/Canvas/BtnUndo"); goRedo = GameObject.Find("/Canvas/BtnRedo"); CmdEntity = (CommandDataEntity)FindObjectOfType <CommandDataModel>().DataEntity; InjectService.InjectInto(this); StartCoroutine(UpdateCommandUIState()); }
/// <summary> /// Unity Method /// </summary> void Start() { InjectService.InjectInto(this); InitTerrain(); CmdEntity = entityUtils.GetEntity <CommandDataEntity>(gameObject); StartCoroutine(UpdateCommandUIState()); }
/// <summary> /// Unity Method /// </summary> private void Start() { _restoreSystem = new RestoreSystem(); testFilePath = Path.Combine(Application.dataPath, testFilePath); filePath = Path.Combine(Application.dataPath, filePath); igcsPath = Path.Combine(Application.dataPath, igcsPath); _storgaeDataWrapper = new StorgaeDataWrapper(); InjectService.InjectInto(this); }
/// <summary> /// Unity Method /// </summary> void Start() { InjectService.InjectInto(this); //赋初值 username = userInput.text; password = passInput.text; userInput.onValueChanged.AddListener(p => username = p); passInput.onValueChanged.AddListener(p => password = p); loginBtn.onClick.AddListener(LoginIn); _ExpInfoSettings = (ExperimentInfoSettings)Resources.Load("ExperimentInfoSettings", typeof(ExperimentInfoSettings)); }
private void Start() { InjectService.InjectInto(this); ExperimentInfoSettings ExpInfoSettings = (ExperimentInfoSettings)Resources.Load("ExperimentInfoSettings", typeof(ExperimentInfoSettings)); _labInterUrl.Add(LabInterType.login, ExpInfoSettings.loginUrl); _labInterUrl.Add(LabInterType.uploadIgcs, ExpInfoSettings.uploadIgcsUrl); _labInterUrl.Add(LabInterType.uploadRepay, ExpInfoSettings.uploadReplayUrl); _labInterUrl.Add(LabInterType.downloadReplay, ExpInfoSettings.downloadReplayUrl); //调用接口,获取登录用户信息 //if (Application.platform == RuntimePlatform.WebGLPlayer) //{ // _iLabInterApiService.GetLabUserInfo(); //} }
/// <summary> /// 执行注入 /// </summary> private void Start() { InjectService.InjectInto(this); }
/// <summary> /// 注入依赖的对象 /// </summary> protected virtual void Start() { InjectService.InjectInto(this); }
/// <summary> /// 启动时注册自己到对象池中 /// </summary> protected override void Start() { base.Start(); InjectService.InjectInto(this); dataModels.RegisterObject(this); }
/// <summary> /// 注入序列化接口 /// </summary> public RecordSystem() { InjectService.InjectInto(this); }
/// <summary> /// 构造函数 /// </summary> public RestoreSystem() { CanSave = true; InjectService.InjectInto(this); }
public CommandPartMove() { InjectService.InjectInto(this); }
/// <summary> /// 构造函数 /// </summary> public LoggingServiceImplForWebGL() { InjectService.InjectInto(this); }
/// <summary> /// 构造函数 /// </summary> public CommandPartCreate() { InjectService.InjectInto(this); }
/// <summary> /// 构造函数 /// </summary> public StorgaeDataWrapper() { InjectService.InjectInto(this); }