void Kick(HTHHitter Attack) { if (!Attack.CanShoot ()) { return; } switch (Attack.AttakType) { case HTHHitter.KickType.Aim: owner.animator.StartAttackAnim(Attack.NameAttack); break; } }
public virtual void StartKick(HTHHitter Attack) { Attack.isKick = true; }
public virtual void StopKick(HTHHitter Attack) { Attack.isKick = false; }
// Use this for initialization void Start() { ThisAttack = this.GetComponent<HTHHitter>(); if (NameAnimate == null) this.enabled = false; attackId = Animator.StringToHash(NameAnimate); aSource = GetComponent<AudioSource> (); sControl = new soundControl (aSource);//создаем обьект контроллера звука myTransform = transform; }