Пример #1
0
 /// <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());
 }
Пример #2
0
        /// <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));
        }
Пример #5
0
        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();
            //}
        }
Пример #6
0
 /// <summary>
 /// 执行注入
 /// </summary>
 private void Start()
 {
     InjectService.InjectInto(this);
 }
Пример #7
0
 /// <summary>
 /// 注入依赖的对象
 /// </summary>
 protected virtual void Start()
 {
     InjectService.InjectInto(this);
 }
Пример #8
0
 /// <summary>
 /// 启动时注册自己到对象池中
 /// </summary>
 protected override void Start()
 {
     base.Start();
     InjectService.InjectInto(this);
     dataModels.RegisterObject(this);
 }
Пример #9
0
 /// <summary>
 /// 注入序列化接口
 /// </summary>
 public RecordSystem()
 {
     InjectService.InjectInto(this);
 }
Пример #10
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public RestoreSystem()
 {
     CanSave = true;
     InjectService.InjectInto(this);
 }
Пример #11
0
 public CommandPartMove()
 {
     InjectService.InjectInto(this);
 }
Пример #12
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public LoggingServiceImplForWebGL()
 {
     InjectService.InjectInto(this);
 }
Пример #13
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public CommandPartCreate()
 {
     InjectService.InjectInto(this);
 }
Пример #14
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public StorgaeDataWrapper()
 {
     InjectService.InjectInto(this);
 }