Exemple #1
0
    public void ApplyPlayerState(GameState.PlayerState playerState)
    {
        this.transform.position = playerState.PlayerPosition;

        CurrentHealth     = playerState.Health;
        CurrentChipDamage = playerState.ChipDamage;
        ComboDamage       = playerState.ComboDamage;
        SpecialMeter      = playerState.SpecialMeter;

        Anim.SetInteger(SpecialMeterParameter, (int)(SpecialMeter / SpecialMeterStockCount));

        OnCharacterHealthChanged.Invoke();
        OnMoveExecuted.Invoke();

        CommandInterpreter.ClearPlayerInputQueue();
    }