CyberCRI / Hero.Coli

Hero.Coli is a single-player 2D top-down adventure game.
http://herocoli.com
MIT License
6 stars 4 forks source link

End cut scene and subsequent game end #445

Closed raphik12 closed 7 years ago

raphik12 commented 7 years ago

This error appears during the cut scene and the nanobots don't disappear:

ArgumentOutOfRangeException: Argument is out of range. Parameter name: index System.Collections.Generic.List`1[UnityEngine.GameObject].get_Item (Int32 index) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:633) PlatformMvt+c__Iterator30.MoveNext () (at Assets/Scripts/Misc/PlatformMvt.cs:54) UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17) UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) PlatformMvt:OnEnable() (at Assets/Scripts/Misc/PlatformMvt.cs:36) UnityEngine.GameObject:AddComponent(Type) EndCutScene:copyComponent(Component, GameObject) (at Assets/Scripts/CutScenes/EndCutScene.cs:151) EndCutScene:secondPart() (at Assets/Scripts/CutScenes/EndCutScene.cs:99)

c__Iterator17:MoveNext() (at Assets/Scripts/CutScenes/EndCutScene.cs:131) UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) Also, if the player unequips the GFP device just after having triggered the GFP door, it may cause the cells to be invisible during the cut scene - I haven't tried this. After the player hit the end game collider, the game pauses and nothing happens - linked to #381.