Esempio n. 1
0
    //光头强抓到我了
    public void OnEventGuangTouQiangCaptureMy()
    {
        if (!IsEnterStart || Prompt_Accelerate != null)
        {
            return;
        }
        if (((IParkourControllerScriptCS)hControllerScriptCS).isGamePaused)
        {
            return;
        }
        if (!IsShowPrompt_Accelerate)
        {
            return;
        }
        Release_Prompt_Accelerate();
        switch (playerIndex)
        {
        case PlayerIndex.Index_P1:
            Prompt_Accelerate = GameRoot.uiOrthographicCamera.LoadLanguageResource_UIPrefabs("Prompt_Accelerate_Left.prefab", GameRoot.gameResource);
            break;

        case PlayerIndex.Index_P2:
            Prompt_Accelerate = GameRoot.uiOrthographicCamera.LoadLanguageResource_UIPrefabs("Prompt_Accelerate_Right.prefab", GameRoot.gameResource);
            break;
        }
        Invoke("Release_Prompt_Accelerate", 3.0f);
        SoundEffectPlayer.PlayStandalone("Accelerate.wav");
    }