Exemplo n.º 1
0
    public void JoystickStart()
    {
        if (AILerp.me.playerAniControl != null && AILerp.me.playerAniControl.isRiding)
        {
            AudioPlay2D.Play("audio", AudioPlay2D.AudioType.Audio, "mic_horse_walk", (float)LocalData.GetInt("SoundValue") / 100, true);
        }
        else
        {
            AudioPlay2D.Play("audio", AudioPlay2D.AudioType.Audio, "mic_walk", (float)LocalData.GetInt("SoundValue") / 100, true);
        }

        _joystickStarted = true;
        _joystickEnded   = false;
        AILerp.me.playerAniControl.isJoystickMove = true;
        if (null != AILerp.me)
        {
            AILerp.me.ReleasePath();
        }
    }
Exemplo n.º 2
0
 void Start()
 {
     AudioPlay2D.Play(pkg, type, resName, volume, loop);
 }