public async Task <IActionResult> Edit(int id, [Bind("id,rollic")] Rool rool) { if (id != rool.id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(rool); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!RoolExists(rool.id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(rool)); }
public async Task <IActionResult> Create([Bind("id,rollic")] Rool rool) { if (ModelState.IsValid) { _context.Add(rool); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(rool)); }
void Start() { transform.position = m_startPosition.position; gameObject.GetComponentInChildren<DeadZone>().SetListener(this); m_rool = GameObject.FindGameObjectWithTag("Player").GetComponent<Rool>(); }