예제 #1
0
파일: Player.cs 프로젝트: aproctor/Donk
 private void EatChicken(Chicken chicken)
 {
     this.characterAnimator.SetTrigger("Eat");
     chicken.GetComponent <Damagable>().TakeDamage(0f); //sound effect
     this.chickensInStomach.Add(chicken);
     chicken.transform.SetParent(this.transform, false);
     chicken.transform.position = new Vector3(this.transform.position.x, this.transform.position.y + 1, this.transform.position.z);
     chicken.gameObject.SetActive(false);
     this.UpdateSpeed();
 }