0
Under Review
nishat 2 weeks ago • updated by Lazlo Bonin (Lead Developer) 2 weeks ago 1


yield return time.WaitForSeconds(5f); line seems to create problem :( 

NullReferenceException: Object reference not set to an instance of an object
fallenPlayer+<Rewind>c__Iterator0.MoveNext () (at Assets/Scripts/fallenPlayer.cs:26)
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
fallenPlayer:OnTriggerEnter(Collider) (at Assets/Scripts/fallenPlayer.cs:16)


Chronos Version:
Unity Version:
Under Review

I see two possibilities here:

1. The game object with this script doesn't have a Timeline attached.

2. The "PlayerCube" global clock doesn't exist.

Can you make sure this isn't the case?

If so, we'll