void Awake() { //画面解像度を設定 //Screen.SetResolution(1920,1080, false, 60); //Screen.SetResolution(960,600, false, 60); normalSpeed = Time.timeScale; scoreText = GameObject.Find("ScoreText").gameObject.GetComponent <Text>(); playerScript = GameObject.Find("_Player").GetComponent <PlayerScript>(); score = 0; colorFilter = filter; state = CONTROL.GUI; gui.enabled = false; gameover = false; mainCamera = cam; slowSpeed = slow; goalCanvas = goal; }
public ActionResult EliminarRegistroControl(ControlModels modelo) { try { MantenimientosBL mantenimientosBL = new MantenimientosBL(); var config = new MapperConfiguration(cfg => { cfg.CreateMap <ControlModels, CONTROL>(); }); IMapper iMapper = config.CreateMapper(); CONTROL modeloEliminar = iMapper.Map <ControlModels, CONTROL>(modelo); mantenimientosBL.EliminarControl(modeloEliminar); return(RedirectToAction("ListaRegistroControl", new { modelo.IDCITA })); } catch (Exception) { throw; } return(View(modelo)); }
public ActionResult Registrar(ControlModels control) { try { if (ModelState.IsValid) { var config = new MapperConfiguration(cfg => { cfg.CreateMap <ControlModels, CONTROL>(); }); IMapper iMapper = config.CreateMapper(); CONTROL controlNuevo = iMapper.Map <ControlModels, CONTROL>(control); MantenimientosBL mantenimientosBL = new MantenimientosBL(); mantenimientosBL.RegistrarControl(controlNuevo); control = new ControlModels(); } } catch (Exception) { throw; } return(View(control)); }
public override void Trigger(ProtagController protag, CONTROL button) { switch (button) { case CONTROL.BBUTTON: switch (Items.GetItem(index).iLoc) { case ILOC.BEACH: case ILOC.FOREST: case ILOC.VOID: case ILOC.HOUSE: protag.SetHold(index); Items.GetItem(index).SetLocation(ILOC.HAND); SetAttachPoint(Vector3.zero, protag.attachBone, protag); break; case ILOC.HAND: break; } break; } }
public ActionResult EditarRegistroControl(ControlModels modelo) { try { if (ModelState.IsValid) { MantenimientosBL mantenimientosBL = new MantenimientosBL(); var config = new MapperConfiguration(cfg => { cfg.CreateMap <ControlModels, CONTROL>(); }); IMapper iMapper = config.CreateMapper(); CONTROL modeloEditar = iMapper.Map <ControlModels, CONTROL>(modelo); mantenimientosBL.EditarControl(modeloEditar); modelo.estado = true; ModelState.Clear(); ViewBag.Correcto = true; return(RedirectToAction("ListaRegistroControl", new { modelo.IDCITA })); } } catch (Exception) { throw; } return(View(new ControlModels())); }
static void ControlSpeed() { focus = CONTROL.Speed; }
static void ControlPower() { focus = CONTROL.Power; }
public void OnInteract(ProtagController protag, CONTROL ctl, Interactive target) { }
public abstract void Trigger(ProtagController protag, CONTROL button);
public virtual void UseItemOn(CONTROL button, Items.Item item) { }
protected IEnumerator OnChangeSelect(CONTROL _control) { mIsControl = false; switch (_control) { case CONTROL.RIGHT: if ((mCurrentPropertyIndx + 1) % mPropertyOffset.x == 0) { mCurrentPropertyIndx -= (int)(mPropertyOffset.x - 1); } else { mCurrentPropertyIndx += 1; } break; case CONTROL.LEFT: if (mCurrentPropertyIndx % mPropertyOffset.x == 0 || mCurrentPropertyIndx == 0) { mCurrentPropertyIndx += (int)(mPropertyOffset.x - 1); } else { mCurrentPropertyIndx -= 1; } break; case CONTROL.UP: if (mCurrentPropertyIndx - mPropertyOffset.x < 0) { mCurrentPropertyIndx += (int)((mPropertyOffset.y - 1) * mPropertyOffset.x); } else { mCurrentPropertyIndx -= (int)mPropertyOffset.x; } break; case CONTROL.DOWN: if (mCurrentPropertyIndx + mPropertyOffset.x > mPropertys.Count - 1) { mCurrentPropertyIndx -= (int)((mPropertyOffset.y - 1) * mPropertyOffset.x); } else { mCurrentPropertyIndx += (int)mPropertyOffset.x; } break; } var limitTime = 0.1f; var countTime = 0f; while (limitTime > countTime) { countTime += Time.deltaTime; mSelectImage.transform.position = Vector3.Lerp(mSelectImage.transform.position, mPropertys[mCurrentPropertyIndx].transform.position, 0.5f); yield return(null); } mSelectImage.transform.position = mPropertys[mCurrentPropertyIndx].transform.position; mIsControl = true; yield return(null); }