Exemple #1
0
    protected override void Syncronize()
    {
        CharacterStateInterpolatorData data;
        double time = Interpolation.time;

        if (this.Sample(ref time, out data))
        {
            Character idMain = base.idMain;
            if (idMain != null)
            {
                idMain.origin     = data.origin;
                idMain.eyesAngles = data.eyesAngles;
                CharacterStateFlags stateFlags = idMain.stateFlags;
                idMain.stateFlags = data.state;
                if (!stateFlags.Equals(data.state))
                {
                    if (!this.once)
                    {
                        idMain.Signal_State_FlagsChanged(true);
                        this.once = true;
                    }
                    else
                    {
                        idMain.Signal_State_FlagsChanged(false);
                    }
                }
            }
        }
    }
Exemple #2
0
    protected override void Syncronize()
    {
        CharacterStateInterpolatorData characterStateInterpolatorDatum;
        double num = Interpolation.time;

        if (this.Sample(ref num, out characterStateInterpolatorDatum))
        {
            Character character = base.idMain;
            if (character)
            {
                character.origin     = characterStateInterpolatorDatum.origin;
                character.eyesAngles = characterStateInterpolatorDatum.eyesAngles;
                CharacterStateFlags characterStateFlag = character.stateFlags;
                character.stateFlags = characterStateInterpolatorDatum.state;
                if (!characterStateFlag.Equals(characterStateInterpolatorDatum.state))
                {
                    if (this.once)
                    {
                        character.Signal_State_FlagsChanged(false);
                    }
                    else
                    {
                        character.Signal_State_FlagsChanged(true);
                        this.once = true;
                    }
                }
            }
        }
    }