Esempio n. 1
0
        public void AnimalCreate()
        {
            AnimalCreator ac = new AnimalCreator();

            Animal animal;

            Type[] expected = { typeof(Bear), typeof(Wolf), typeof(Giraffe) };

            animal = ac.Create();

            foreach (var type in expected)
            {
                if (type == animal.GetType())
                {
                    Assert.AreEqual(type, animal.GetType());
                }
            }
        }
Esempio n. 2
0
 //おでかけ先での処理
 #region
 //動物を生成する。
 public void AnimalCreate()
 {
     ACreator.Create(UseCategory, UseID);
     ACon = GameObject.FindGameObjectWithTag("Animal").GetComponent <AnimalController>();
 }