Esempio n. 1
0
 public void Start()
 {
     Animator [] Animators = transform.GetComponentsInChildren <Animator>();
     for (int i = 0; i < Animators.Length; i++)
     {
         if (Animators[i].gameObject.name == "barley")
         {
             _animator = Animators[i];
             this._projectileParams = ProjectileParams.GetProjectileParams("barley", this.Damage, Animators[i].gameObject.GetComponentInChildren <FXController>().attackTransform);
         }
     }
 }