public void Enter(Doe doe) { _doe = doe; _doe.sleepyFX.Play(); _doe.isSleepState = true; _doe._navMeshAgent.speed = 0; }
private void button2_Click(object sender, EventArgs e) { string fname = FNAME.Text; string lname = LNAME.Text; string license = HL.Text; string tag = TAG.Text; string zone = listBox1.GetItemText(listBox1.SelectedItem); if (BUCK.Checked) { Form3 f3 = new Form3(); Deer deerB = new Buck(); Customer cus = new Customer(fname, lname, license, tag, zone, deerB, "Buck"); f3.cusInfo(cus); this.Hide(); f3.Show(); } else if (DOE.Checked) { Form4 f4 = new Form4(); Deer deerD = new Doe(); Customer cus = new Customer(fname, lname, license, tag, zone, deerD, "Doe"); f4.cusInfo(cus); this.Hide(); f4.Show(); } }
public void cusInfoTest() { Form3 f3 = new Form3(); Deer deer = new Doe(); Customer cus = new Customer("Justin", "Fleming", "555", "666", "131", deer, "Doe"); f3.cusInfo(cus); Assert.AreEqual(cus, f3.getf3Cus()); }
public void Enter(Doe doe) { _doe = doe; _doe.isDrinkState = true; }
public void Enter(Doe doe) { _doe = doe; _doe.isIdleState = true; _doe._navMeshAgent.speed = 0;// }
public void Enter(Doe doe) { _doe = doe; _doe.isAwakenState = true; }
public void Enter(Doe doe) { _doe = doe; _doe.isTakeDamageState = true; }
public void Enter(Doe doe) { _doe = doe; _doe.isDeathState = true; _doe._navMeshAgent.enabled = false; }
public void Enter(Doe doe) { _doe = doe; _doe._navMeshAgent.speed = 0; _doe.isAttackState = true; }
public void Enter(Doe doe) { _doe = doe; _doe._navMeshAgent.speed = _doe.animalStats.chaseSpeed; _doe.isChaseState = true; }
public void Enter(Doe doe) { _doe = doe; _doe.isPatrolState = true; _doe._navMeshAgent.speed = _doe.animalStats.patrolSpeed; }