im making a game and ran into a problem with this script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class axde : MonoBehaviour
{
public Animation anim;
void Start()
{
anim = GetComponent();
}
void Update()
{
if (Input.GetButtonDown(“Fire1”))
{
Debug.Log(“fire”);
anim.SetBool(“fire”, true);
}
}
}
im getting this error message
Assets\axde.cs(19,18): error CS1061: ‘Animation’ does not contain a definition for ‘setBool’ and no accessible extension method ‘setBool’ accepting a first argument of type ‘Animation’ could be found (are you missing a using directive or an assembly reference?)