Beispiel #1
0
        private IEnumerator ResumeTime()
        {
            foreach (var creature in Creature.list)
            {
                if (!creature.isPlayer)
                {
                    try
                    {
                        Object.Destroy(creature.gameObject.GetComponent <FrozenRagdollCreature>());
                    }
                    catch (Exception e)
                    {
                        Debug.Log(e.Message);
                    }

                    try
                    {
                        Object.Destroy(creature.gameObject.GetComponent <FrozenAnimationCreature>());
                    }
                    catch (Exception e)
                    {
                        Debug.Log(e.Message);
                    }
                }
            }

            foreach (var item in Item.list)
            {
                try
                {
                    Object.Destroy(item.gameObject.GetComponent <FrozenItem>());
                }
                catch (Exception e)
                {
                    Debug.Log(e.Message);
                }
            }

            isTimeStopped = false;

            CameraEffects.RefreshPostProcess();

            yield return(null);
        }