Beispiel #1
0
 public void Attack(GameObject targ)
 {
     //animator.SetBool("attack", true);
     if (Time.time - lastAttack > model.attackCD)
     {
         lastAttack = Time.time;
         model.Attack(gameObject, spawnpoint, targ);
     }
 }