public void ApplyLerpedState(NetStream state0, NetStream state1, float mix)
 {
     if (showDebug)
     {
         Debug.Log(base.name + " ApplyLerpedState ");
     }
     targetHeat = ((!NetBoolEncoder.ApplyLerpedState(state0, state1, mix)) ? 0f : 0.9f);
 }
 public void ApplyLerpedState(NetStream state0, NetStream state1, float mix)
 {
     if (showDebug)
     {
         Debug.Log(base.name + " Apply Lerped State ");
     }
     ApplyState(NetBoolEncoder.ApplyLerpedState(state0, state1, mix), NetBoolEncoder.ApplyLerpedState(state0, state1, mix));
 }
Esempio n. 3
0
    public void ApplyLerpedState(NetStream state0, NetStream state1, float mix)
    {
        bool          flag          = NetBoolEncoder.ApplyLerpedState(state0, state1, mix);
        bool          flag2         = NetBoolEncoder.ApplyLerpedState(state0, state1, mix);
        FireworkState fireworkState = flag ? FireworkState.Shot : (flag2 ? FireworkState.Exploded : FireworkState.Inactive);
        float         newPhase      = NetSignal.encoder.ApplyLerpedState(state0, state1, mix);

        if (fireworkState != 0 && state == FireworkState.Inactive)
        {
            Fireworks.instance.MarkUsed(this);
        }
        if (fireworkState == FireworkState.Inactive && state != 0)
        {
            Fireworks.instance.Kill(this);
        }
        Apply(fireworkState, newPhase);
    }
Esempio n. 4
0
 public void ApplyLerpedState(NetStream state0, NetStream state1, float mix)
 {
     ApplyState(NetBoolEncoder.ApplyLerpedState(state0, state1, mix));
 }
Esempio n. 5
0
 public void ApplyLerpedState(NetStream state0, NetStream state1, float mix)
 {
     targetHeat = ((!NetBoolEncoder.ApplyLerpedState(state0, state1, mix)) ? 0f : 0.9f);
 }
Esempio n. 6
0
        public void ApplyLerpedState(NetStream state0, NetStream state1, float mix)
        {
            bool jointCreated = NetBoolEncoder.ApplyLerpedState(state0, state1, mix);

            ApplyState(jointCreated);
        }