Beispiel #1
0
        public void ExposeTimeData()
        {
            bool newActive = gameObject.activeSelf;

            TimeScribe.Look_Value(ref newActive);
            if (newActive != gameObject.activeSelf)
            {
                gameObject.SetActive(newActive);
            }
            if (RecordTransform)
            {
                TimeScribe.Look_Transform(transform);
            }
            if (RecordRigidBody)
            {
                rb.velocity = TimeScribe.Look_Property(rb.velocity);
            }
            TimeScribe.Look_Value(ref FakeDestroyed);
        }