using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Hit : MonoBehaviour {
public float rotSpeed = 10f
;
public float rotBack = -10f;
public Vector3 startPoint;
public Animator anim;
// Use this for initialization
void Start()
{
anim = GetComponent<Animator>();
}
// Update is called once per frame
void Update () {
if (Input.GetKey("w"))
{
anim.Play("Attack");
}
}
}