public async Task <ActionResult <dash> > Postdash(dash dash) { _context.dash.Add(dash); await _context.SaveChangesAsync(); return(CreatedAtAction("Getdash", new { id = dash.dashId }, dash)); }
public async Task <ActionResult <dash> > Putdash(int id, dash dash) { if (id != dash.dashId) { return(BadRequest()); } _context.Entry(dash).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!dashExists(id)) { return(NotFound()); } else { throw; } } return(dash); }
void Start() { anim = GetComponent <Animator>(); playerMovement = GetComponentInParent <PlayerMovement>(); dashhh = GetComponentInParent <dash>(); playerMovement.jumpAction += OnJump; playerMovement.landAction += OnLand; dashhh.dashAction += OnDash; }
public ActionResult Dashboard() { int discussionID = (int)Session["Discussion"]; var tables = new dash { Participants = dBEntities.Participants.Where(x => x.DiscussionID == discussionID).ToList() }; //var lastrow = dBEntities.Moderators.OrderByDescending(x => x.firstname.Length).ThenByDescending(x => x.firstname).FirstOrDefault().firstname; string firstname = dBEntities.Moderators.Find(Session["User"]).firstname; string lastname = dBEntities.Moderators.Find(Session["User"]).lastname; ViewBag.Moderator = firstname + ' ' + lastname; return(View(tables)); }
void Start() { //get the state script playerStateScript = GetComponent <player_state> (); //get the GameObject beaverSprite = transform.GetChild(1).gameObject; beaverMouth = transform.GetChild(1).gameObject; beaverPearlCollider = beaverSprite.transform.GetChild(0).gameObject; // get Player name form patent object Player_name = gameObject.transform.name; //gettign the scripts that will be disabled movingScript = GetComponent <moving> (); dashScript = GetComponent <dash> (); throwingScript = GetComponent <throwing> (); colDetectScript = GetComponent <collision_detection> (); //get the scripts to animate the indicator // if (Player_name == "Beaver1") { // iconIndicator = GameObject.FindGameObjectWithTag ("iconP1").GetComponent<Animator>(); // // } else if (Player_name == "Beaver2") { // iconIndicator = GameObject.FindGameObjectWithTag ("iconP2").GetComponent<Animator>(); // } //getting the particle system Bubbles = beaverMouth.GetComponentInChildren <ParticleSystem> (); //setting the emmision to 0 Bubbles.emissionRate = 0; //initially not suffocating //isSuffocating = false; playerStateScript.SetIsSuffocating(false); // gettign the ridgit body of the Player rBody = GetComponent <Rigidbody2D> (); // getting the animator. animator = transform.GetChild(1).gameObject.GetComponent <Animator> (); soundPlayer = GameObject.FindGameObjectWithTag("Sound_Player").GetComponent <sound_player>(); }
void Start() { //get the state script playerStateScript = GetComponent<player_state> (); //get the GameObject beaverSprite = transform.GetChild (1).gameObject; beaverMouth = transform.GetChild (1).gameObject; beaverPearlCollider = beaverSprite.transform.GetChild (0).gameObject; // get Player name form patent object Player_name = gameObject.transform.name; //gettign the scripts that will be disabled movingScript = GetComponent<moving> (); dashScript = GetComponent<dash> (); throwingScript = GetComponent<throwing> (); colDetectScript = GetComponent<collision_detection> (); //get the scripts to animate the indicator // if (Player_name == "Beaver1") { // iconIndicator = GameObject.FindGameObjectWithTag ("iconP1").GetComponent<Animator>(); // // } else if (Player_name == "Beaver2") { // iconIndicator = GameObject.FindGameObjectWithTag ("iconP2").GetComponent<Animator>(); // } //getting the particle system Bubbles = beaverMouth.GetComponentInChildren<ParticleSystem> (); //setting the emmision to 0 Bubbles.emissionRate = 0; //initially not suffocating //isSuffocating = false; playerStateScript.SetIsSuffocating (false); // gettign the ridgit body of the Player rBody = GetComponent<Rigidbody2D> (); // getting the animator. animator = transform.GetChild (1).gameObject.GetComponent<Animator> (); soundPlayer = GameObject.FindGameObjectWithTag ("Sound_Player").GetComponent<sound_player>(); }