public override void PrepareForGameplay(Rigidbody2D component, ReplayState additionalData)
        {
            // Read the default value
            bool initialState     = additionalData.ReadBool();
            bool initialSimulated = additionalData.ReadBool();

            // Reset the kinematic state and simulated
            component.isKinematic = initialState;
            component.simulated   = initialSimulated;
        }
        public override void PrepareForGameplay(Animator component, ReplayState additionalData)
        {
            // Read the component state
            bool initialState = additionalData.ReadBool();

            // Reset the animator state
            component.enabled = initialState;
        }
示例#3
0
        public override void PrepareForGameplay(Behaviour component, ReplayState additionalData)
        {
            // Read the default value
            bool initialState = additionalData.ReadBool();

            // Reset the kinematic state
            component.enabled = initialState;
        }