not to long ago i asked how i would i go along making a melee system and i came up with a very basic one here it is:
var Damage = 20;
var stab : AnimationClip;
function OnCollisionEnter(Attack : Collision) {
if(Input.GetButtonDown("Fire1"))
if (Attack.gameObject.tag == "Enemy")
Damage -= 20;
animation.Play("Slash");
}
and when i press fire1 it does not do anything and i dont understand why it is not working please help
↧