Exemplo n.º 1
0
    //方法,执行支持我们按钮点击之后的操作
    public void SupportUsButtonClick()
    {
        //如果设置界面响应点击
        if (settingInterfaceClickEnable)
        {
            #if (IOS_SDK)
            //看视频送点数的奖励关闭
            MyClass.videoRewardEnable = 0;

            //发送Email
            SdkToU3d.ShowGameEndADs();

            //按钮追踪
            SdkToU3d.TrackButtonActionWithName("SupportUsButton");
            #endif

            //播放按钮音效
            MyClass.AudioPlay(soundPlayer, Resources.Load <AudioClip>("Audio/Button"), MyClass.soundEnable);
        }
    }