示例#1
0
    void Update()
    {
        string txt = "";

        if (params_.State)
        {
            txt += hero.CurrentStateStr() + "\n";
        }
        if (params_.Velocity)
        {
            txt += "Velocity: " + hero.velocity + "\n";
        }
        if (params_.KeyDirection)
        {
            txt += "KeyDirection: " + hero.KeyDirection + "\n";
        }
        if (params_.WantsToGoRight)
        {
            txt += "WantsToGoRight: " + hero.WantsToGoRight + "\n";
        }
        if (params_.IsOnGround)
        {
            txt += "IsOnGround: " + hero.IsOnGround + "\n";
        }

        if (txt != "")
        {
            Debug.Log(txt);
        }
    }