I don’t understand what means : “c”, “col” and “t” in this cases :
List<Collider> lCol = new List<Collider>();
public string tagMask = string.Empty;
if (!string.IsNullOrEmpty(tagMask))
lCol.RemoveAll(c => c.tag != tagMask);
List<Transform> objectsInSightNow = new List<Transform>();
lCol.ForEach(col => objectsInSightNow.Add(col.transform));
private List<Transform> _targetsInSight;
objectsNotInSight.AddRange(_targetsInSight.FindAll(t => !objectsInSightNow.Contains(t)));
I got it from “VisionSystem”, just want rewrite on javascript.
Thanks.