public void AttackMelee_Execute() { _behaviour = GetComponent <CowClass>(); _pos = this.transform.position; _dir = _behaviour.myDirection; _pos += _dir * 0.16f; // 문지기 this.transform.position = _pos; }
public void TestMethod3() { int n = 4; string expected = "коровы"; string actual = CowClass.Cow(n); Assert.AreEqual(expected, actual); }
private void button1_Click(object sender, EventArgs e) { label2.Text = amount.Value + " " + CowClass.Cow(Convert.ToInt32(amount.Value)); }
private void Awake() { parent = transform.parent.gameObject; rootBehaviour = parent.GetComponent <CowClass>(); }