Hello, my problem is that i get an error message as below. The script is to make sure that my character controller goes through the rings in the correct order.
Assets/rings.js(20,51): BCE0043: Unexpected token: Collider.
import System.Collections.Generic;
var list = LinkedList.<BoxCollider>();
var current : LinkedListNode.<BoxCollider>;
function Awake()
{
list.AddLast(new BoxCollider());
current = list.First;
}
function OnTriggerEnter(BoxCollider Collider)
{
if(collidedWith == current.Value)
{
current = current.Next;
}
}
if anyone has any solutions, or help, it'd be very much appreciated.