DerekCresswell / GameDesign11

A project based intro to game development using the Unity game engine
MIT License
31 stars 12 forks source link

PlayerController : Error converting List<Collider2D> to Collider2D[] #34

Closed DerekCresswell closed 4 years ago

DerekCresswell commented 4 years ago

Got reports of a compilation error occurring here when passing crouchCollider into the OverlapCollider function.

This really doesn't seem like it should be a thing. I was unable to repro on my machine using Unity 2019.2.17f1.
Report came from 2018.3.3. I looked through the docs and found no discrepancies in the API for these functions. Besides, arrays and lists should be fine to convert whenever.

If anyone else can replicate this leave a comment here with more details.

Repro instructions :

DerekCresswell commented 4 years ago

Going to assume that this was a false positive.