Beispiel #1
0
        /**
         * Wait for some time so the CrashHome can load and spawn the Crash fish.
         * If we try to manually spawn the crash fish (and assign to the CrashHome) it will be at
         * the wrong orientation.  Maybe someone can figure out why this happens to we can create
         * it without leveraging this hack.
         */
        private IEnumerator WaitToAssignId(NitroxId id, CrashHome crashHome)
        {
            yield return(new WaitForSeconds(0.25f));

            GameObject crash = ((Crash)crashHome.ReflectionGet("crash")).gameObject;

            NitroxIdentifier.SetNewId(crash, id);
        }
Beispiel #2
0
        /**
         * Wait for the next fixed update so the CrashHome can load and spawn the Crash fish.
         * If we try to manually spawn the crash fish (and assign to the CrashHome) it will be at
         * the wrong orientation.  Maybe someone can figure out why this happens to we can create
         * it without leveraging this hack.
         */
        private IEnumerator WaitToAssignGuid(string guid, CrashHome crashHome)
        {
            yield return(new WaitForFixedUpdate());

            ((Crash)crashHome.ReflectionGet("crash")).gameObject.SetNewGuid(guid);
        }