Question by
cubman3134 · Jan 22, 2018 at 12:20 AM ·
c#arraytrigger
OnTriggerEnter adding array and not single object
so the other gameObject is in an array, and when I add the gameObject to touchingObjects it adds the whole array.
public Dictionary touchingObjects;
private void OnTriggerEnter(Collider other) { touchingObjects[other.gameObject.transform.position] = other.gameObject; }
Comment