Пример #1
0
 public void AttackMelee_Execute()
 {
     _behaviour = GetComponent <CowClass>();
     _pos       = this.transform.position;
     _dir       = _behaviour.myDirection;
     _pos      += _dir * 0.16f; // 문지기
     this.transform.position = _pos;
 }
Пример #2
0
        public void TestMethod3()
        {
            int    n        = 4;
            string expected = "коровы";

            string actual = CowClass.Cow(n);

            Assert.AreEqual(expected, actual);
        }
Пример #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     label2.Text = amount.Value + " " + CowClass.Cow(Convert.ToInt32(amount.Value));
 }
Пример #4
0
 private void Awake()
 {
     parent        = transform.parent.gameObject;
     rootBehaviour = parent.GetComponent <CowClass>();
 }