protected override void OnLoad() { //Screen.showCursor = false; this.PlotCaptionMap = ConfigMap.Instance().LabCaptionMap; // inputList.Add(MoveStatus.BACKWARD); inputList.Add(MoveStatus.FORWARD); // inputList.Add(MoveStatus.LEFT); // inputList.Add(MoveStatus.RIGHT); plotStatusDic.Add("isFinishWink", false); plotStatusDic.Add("isFinishMouse", false); plotStatusDic.Add("isFinishMove", false); plotStatusDic.Add("isMoveMouseX", false); plotStatusDic.Add("isMoveMouseY", false); plotStatusDic.Add("isStartTest", false); plotStatusDic.Add("isFinishTest1", false); plotStatusDic.Add("isFinishTest2", false); plotStatusDic.Add("isTest2TimeUp", false); plotStatusDic.Add("isFinishiTestAI", false); plotStatusDic.Add("isGetSofa", false); plotStatusDic.Add("isEvaluating", false); plotStatusDic.Add("isEndPassed", false); plotStatusDic.Add("isEndReject", false); this.labObjects.ShowLabTest1(false); this.labObjects.ShowLabTest2(false); this.labObjects.ShowLabTest3(false); this.labObjects.ShowLabTest4(false); this.labObjects.ShowLabEnd1(false); this.labObjects.ShowLabEnd2(false); this.restartPanel.SetActive(false); waterObj.transform.localPosition = waterPos; Invoke("PlayPlot", 1.5f); }
private void Init() { this.player.IsRestrictPath = true; guide.SetDogPosition(dogPos[dogPosIndex++]); PlotModule.Instance().SetPlotCaption(audioSource, captionLabel, ConfigMap.Instance().GuideCaptionMap); tipsPanel.ShowForwardTip(true); }
protected override void OnLoad() { this.PlotCaptionMap = ConfigMap.Instance().SoloCaptionMap; this.selectPanel.ShowSelectPanel(false); PlotModule.Instance().AudioContainer = audioContainer; InitLoginUI(); }
protected override void OnLoad() { this.PlotCaptionMap = ConfigMap.Instance().CaveCaptionMap; this.captionLabel.text = "山洞中..."; guide.ResetDog(dogPos[dogIndex]); dogIndex++; }
/// <summary> /// Validates parameters used by service methods.Parameters are represented by InputParam class and they can be wither optional or mandatory /// </summary> /// <param name="paramList">Parameter list to validate</param> /// <param name="param">Parameters given to service to be validated</param> public void Support(ICollection <InputParam> paramList, ConfigMap param) { Object para; if (paramList != null && paramList.Count > 0) { foreach (InputParam s in paramList) { para = param != null && param.ContainsKey(s.GetKey()) ? param[s.GetKey()] : null; if (s.GetClass() == "".GetType() && para != null && Convert.ToString(para).Length == 0) //((String)para).Length == 0) { throw new SupportException("--SupportValidationFailed> Empty value for parameter: " + s); } if (s.IsMandatory() && para == null) { throw new SupportException("--SupportValidationFailed> Mandatory parameter missing: " + s); } else if (!s.IsMandatory() && param.ContainsKey(s.GetKey()) && para == null) { throw new SupportException("--SupportValidationFailed> Optional parameter value not defined: " + s); } else if (para != null && (s.GetType() != null && para.GetType() != s.GetClass())) { throw new SupportException("--SupportValidationFailed> Invalid type for parameter " + s + ". Expected " + s.GetType() + " Found: " + param.Get(s.GetKey(), "").GetType()); } } } }
static IEnumerable <EnvironmentVariable> ToEnvironmentVariables(this ConfigMap configMap) { var configLabel = (configMap.DeployConfigLabel == null) ? configMap.ConfigurableType.Name : configMap.DeployConfigLabel.Label; return(configMap.Select(entry => new EnvironmentVariable(configLabel, entry.EnvironmentVariable.Name, entry.Property.PropertyType.Name))); }
public static ConfigMap Instance() { if (instance == null) { instance = new ConfigMap(); } return(instance); }
private void CheckNPC() { if (guide.PlayerInRange() && npcIndex < npcPos.Length) { PlotModule.Instance().SetCaptionByIndex(audioSource, captionLabel, ConfigMap.Instance().AlleyCaptionMap, GameCommon.Randomi(1, 2)); guide.ResetDog(npcPos[npcIndex]); npcIndex++; } }
protected void Application_Start() { ConfigMap config = new ConfigMap(); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }
private void CheckEnterNextRoom() { //finished guide part - go to Next sence if (guide.PlayerInRange() && dogPosIndex >= dogPos.Count) { this.guide.StopAnimalSound(); PlotModule.Instance().SetPlotCaption(audioSource, captionLabel, ConfigMap.Instance().GuideCaptionMap); Invoke("NextLevel", PlotModule.Instance().CurrentAudioLength); } }
void Awake() { DontDestroyOnLoad(gameObject); GenerateFile(); ConfigMap.Instance(); PlayerModule.Instance(); PlotModule.Instance(); InitGameData(); PlayerModule.Instance().LoadPlayerData(); }
//check moving, set new dog position private void CheckTrigger() { if (guide.PlayerInRange() && dogPosIndex < dogPos.Count) { tipsPanel.ShowForwardTip(false); this.guide.StopAnimalSound(); //set position guide.SetDogPosition(dogPos[dogPosIndex++]); inputIndex++; Invoke("PlayDogBark", 1); //set caption if (isTrigger && PlotModule.Instance().CaptionIndex < PlotModule.Instance().AudioContainer.audioPlotList.Count) { isTrigger = false; PlotModule.Instance().SetPlotCaption(audioSource, captionLabel, ConfigMap.Instance().GuideCaptionMap); } return; } else { isTrigger = true; } }
/// <summary> /// 保存页面缩略图 /// </summary> /// <param name="path"></param> /// <param name="pobj"></param> public string SavePageView(PageDataObj pobj, int userid, Inpinke_Book book, ref bool istxtO, int pageid) { int bookid = book.ID; string prodName = book.Inpinke_Product.ShortName.ToString().ToLower(); string dName = "/UserFile"; string path = Server.MapPath(dName); string filePath = path + "/" + userid + "/" + bookid; if (!Directory.Exists(filePath)) { Directory.CreateDirectory(filePath); } string fileName = "pview_" + pageid + ".jpg"; int orgWidth = ConfigMap.GetEditorAttr(prodName, "EditorWidth"); orgWidth = pobj.isskip == "true" ? orgWidth * 2 : orgWidth; int orgHeight = ConfigMap.GetEditorAttr(prodName, "EditorHeight"); int outWidth = ConfigMap.GetEditorAttr(prodName, "MiniViewWidth"); outWidth = pobj.isskip == "true" ? outWidth * 2 : outWidth; int outHeight = ConfigMap.GetEditorAttr(prodName, "MiniViewHeight"); ImageProcessBLL.CreatePageViewImage(pobj, filePath + "/" + fileName, orgWidth, orgHeight, outWidth, outHeight, ref istxtO); ImageProcessBLL.CreatePageViewImage(pobj, filePath + "/pthumb_" + pageid + ".jpg", orgWidth, orgHeight, orgWidth, orgHeight, ref istxtO); string returnName = dName + "/" + userid + "/" + bookid + "/" + fileName; if (pobj.pagenum == 0) { Image originalImage = Image.FromFile(filePath + "/pthumb_" + pageid + ".jpg"); Bitmap bitmap = new Bitmap(originalImage); ImageProcessBLL.CreateScaleImage(bitmap, 200, 200, filePath + "/cover200.jpg", false); originalImage.Dispose(); } return(returnName); }
protected override void OnLoad() { this.PlotCaptionMap = ConfigMap.Instance().GuideCaptionMap; captionLabel.text = ""; Invoke("Init", 1.0f); }
protected override void OnLoad() { this.PlotCaptionMap = ConfigMap.Instance().AlleyCaptionMap; guide.ResetDog(npcPos[npcIndex]); npcIndex++; }
/// <summary> /// Set Inti params /// </summary> /// <param name="initParams">The initParams to set</param> public void SetInitParams(ConfigMap initParams) { this.initParams = initParams; }
// Use this for initialization protected override void OnLoad() { this.PlotCaptionMap = ConfigMap.Instance().InfinityCaptionMap; }
protected override void OnLoad() { this.player.IsRestrictPath = true; this.PlotCaptionMap = ConfigMap.Instance().ForestCaptionMap; }