It gives me the error CS1061
Here is the code:
using UnityEngine;
using System.Collections;
public class Doors : MonoBehaviour {
Animation animation;
bool doorOpen;
void start()
{
doorOpen = false;
animation = GetComponent();
}
void OnTriggerEnter(Collider col)
{
if(col.gameObject.tag == “Player”)
{
doorOpen = true;
DoorControl(“Open”);
}
}
void OnTriggerExit(Collider col)
{
if (doorOpen)
{
doorOpen = false;
DoorControl(“Colse”);
}
}
void DoorControl(string direction)
{
animation.SetTrigger(direction);
}
}