public virtual void Deserialize(XElement node) { var sX = node.Attribute("x")?.Value; var sY = node.Attribute("y")?.Value; var x = 0.0; var y = 0.0; double.TryParse(sX, out x); double.TryParse(sY, out y); SetPosition(x, y); var controllerNode = node.Element("controller"); if (controllerNode != null) { InnerController.Deserialize(controllerNode); } var optionsNode = node.Element("options"); if (optionsNode != null) { DeserializeOptions(optionsNode); } }
private void OnTriggerStay2D(Collider2D col) { // Controller detect if (col.gameObject.layer == 11) { //canMove = !Input.GetKey(inputKey[(int)GameSetting.PlayerInput.Interact]); InnerController controller = col.GetComponent <InnerController>(); if (Input.GetKey(inputKey[(int)GameSetting.PlayerInput.Interact])) { canMove = false; if (controller.usingPlayer == null) { //beforeUsingPos = transform.localPosition; controller.usingPlayer = this; } controller.Use(); transform.position = col.transform.position; } if (Input.GetKeyUp(inputKey[(int)GameSetting.PlayerInput.Interact])) { if (controller != null) { controller.usingPlayer = null; } controller.StopUse(); canMove = true; } } }
public virtual ActionResult Index([ModelBinder(typeof(FormModelBinder))] FormModel form) { Assert.ArgumentNotNull(form, "form"); if (this.FormManager == null) { return(null); } string returnUrl = System.Web.HttpContext.Current.Request["returnUrl"]; if (string.IsNullOrEmpty(returnUrl)) { returnUrl = HttpUtility.ParseQueryString(System.Web.HttpContext.Current.Request.UrlReferrer.Query)["returnUrl"]; } if (!string.IsNullOrEmpty(returnUrl)) { return(base.RedirectToRoute(MvcSettings.SitecoreRouteName, new { pathInfo = returnUrl.TrimStart(new char[] { '/' }) })); } return(InnerController.Index(form)); }
/// <inheritdoc/> public string Serialize(ITestCase testCase) => InnerController.Serialize(testCase);
/// <inheritdoc/> public virtual void RunTests(IEnumerable <ITestCase> testMethods, IMessageSink messageSink, ITestFrameworkExecutionOptions executionOptions) { InnerController.RunTests(testMethods, messageSink, executionOptions); }
/// <inheritdoc/> public virtual void RunAll(IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions, ITestFrameworkExecutionOptions executionOptions) { InnerController.RunAll(messageSink, discoveryOptions, executionOptions); }
/// <inheritdoc/> public virtual void Find(string typeName, bool includeSourceInformation, IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions) { InnerController.Find(typeName, includeSourceInformation, messageSink, discoveryOptions); }
/// <inheritdoc/> public ITestCase Deserialize(string value) => InnerController.Deserialize(value);
/// <inheritdoc/> public ITestCase Deserialize(string value) { return(InnerController.Deserialize(value)); }
/// <inheritdoc/> public string Serialize(ITestCase testCase) { return(InnerController.Serialize(testCase)); }
/// <inheritdoc/> public virtual void Find(string typeName, bool includeSourceInformation, IMessageSink messageSink) { InnerController.Find(typeName, includeSourceInformation, messageSink); }
/// <inheritdoc/> public virtual void Find(bool includeSourceInformation, IMessageSink messageSink) { InnerController.Find(includeSourceInformation, messageSink); }
/// <inheritdoc/> public virtual void Find(bool includeSourceInformation, IMessageSink messageSink, ITestFrameworkOptions options) { InnerController.Find(includeSourceInformation, messageSink, options); }
public override ActionResult Index() { return(InnerController.Index()); }