当前位置: 首页 > news >正文

网站index.php被修改微信搜一搜怎么做推广

网站index.php被修改,微信搜一搜怎么做推广,团购网站制作,广州网站制作开发公司哪家好目录 一、搭建小游戏环境 二、接入抖音SDK 1.初始化 2.登录 3.分享 4.添加到桌面 5.侧边栏功能 6. 接入流量主 三、完整代码 下一篇传送门 Unity 接入抖音小游戏二 -CSDN博客 一、搭建小游戏环境 我这边因为没有下载其他版本的Unity所以就先用2022.3.57f1了 大家还是下载…

目录

一、搭建小游戏环境

二、接入抖音SDK

1.初始化

2.登录

 3.分享

4.添加到桌面

5.侧边栏功能

6. 接入流量主

 三、完整代码


下一篇传送门 Unity 接入抖音小游戏二 -CSDN博客

一、搭建小游戏环境

我这边因为没有下载其他版本的Unity所以就先用2022.3.57f1了 大家还是下载抖音推荐的版本

切换Unity平台为WebGL 然后找到 ProjectSetting->Player->OtherSettings  Color Space 选择Camma      Auto Graphics API 取消勾选   Garphics APIs 选择WebGL2即可

安装BGDT 点击下载 下载完之后直接导入到Unity里面然后找到ByteGame->ByteGame Develop Tools点开

 找到TTSDK直接下载

 创建一个脚本叫TTPlayerPrefs用来替换本地存储接口代码如下 需要新加一个宏为 BYTEDANCE_MINIGAME

#if UNITY_WEBGL && BYTEGAME_MINIGAME
using TTSDK;
#endif
using UnityEngine;public class TTPlayerPrefs : MonoBehaviour
{public static void SetInt(string key, int value){
#if UNITY_WEBGL && BYTEGAME_MINIGAME && !UNITY_EDITORTT.PlayerPrefs.SetInt(key, value);
#elseUnityEngine.PlayerPrefs.SetInt(key, value);
#endif}public static int GetInt(string key, int defaultValue = 0){
#if UNITY_WEBGL && BYTEGAME_MINIGAME && !UNITY_EDITORreturn TT.PlayerPrefs.GetInt(key, defaultValue);
#elsereturn UnityEngine.PlayerPrefs.GetInt(key, defaultValue);
#endif}public static void SetFloat(string key, float value){
#if UNITY_WEBGL && BYTEGAME_MINIGAME && !UNITY_EDITORTT.PlayerPrefs.SetFloat(key, value);
#elseUnityEngine.PlayerPrefs.SetFloat(key, value);
#endif}public static float GetFloat(string key, float defaultValue = 0.0f){
#if UNITY_WEBGL && BYTEGAME_MINIGAME && !UNITY_EDITORreturn TT.PlayerPrefs.GetFloat(key, defaultValue);
#elsereturn UnityEngine.PlayerPrefs.GetFloat(key, defaultValue);
#endif}public static void SetString(string key, string value){
#if UNITY_WEBGL && BYTEGAME_MINIGAME && !UNITY_EDITORTT.PlayerPrefs.SetString(key, value);
#elseUnityEngine.PlayerPrefs.SetString(key, value);
#endif}public static string GetString(string key, string defaultValue = ""){
#if UNITY_WEBGL && BYTEGAME_MINIGAME && !UNITY_EDITORreturn TT.PlayerPrefs.GetString(key, defaultValue);
#elsereturn UnityEngine.PlayerPrefs.GetString(key, defaultValue);
#endif}public static bool HasKey(string key){
#if UNITY_WEBGL && BYTEGAME_MINIGAME && !UNITY_EDITORreturn TT.PlayerPrefs.HasKey(key);
#elsereturn UnityEngine.PlayerPrefs.HasKey(key);
#endif}public static void DeleteKey(string key){
#if UNITY_WEBGL && BYTEGAME_MINIGAME && !UNITY_EDITORTT.PlayerPrefs.DeleteKey(key);
#elseUnityEngine.PlayerPrefs.DeleteKey(key);
#endif}public static void DeleteAll(){
#if UNITY_WEBGL && BYTEGAME_MINIGAME && !UNITY_EDITORTT.PlayerPrefs.DeleteAll();
#elseUnityEngine.PlayerPrefs.DeleteAll();
#endif}public static void Save(){
#if UNITY_WEBGL && BYTEGAME_MINIGAME && !UNITY_EDITORTT.PlayerPrefs.Save();
#elseUnityEngine.PlayerPrefs.Save();
#endif}
}

二、接入抖音SDK

1.初始化

关键函数 TT.InitSDK

public void InitSDK(Action onSDKInitialized)
{TT.InitSDK((code, env) =>{_host = env.m_HostEnum;_systemInfo ??= TT.GetSystemInfo();_isIOS = _systemInfo.platform.Contains("ios", StringComparison.OrdinalIgnoreCase);_isAndroid = _systemInfo.platform.Contains("android", StringComparison.OrdinalIgnoreCase);LaunchOption launchOption = TT.GetLaunchOptionsSync();_sceneID = launchOption.Scene;// 控制屏幕常亮TT.SetKeepScreenOn(true, () => { Debug.Log("TT.SetKeepScreenOn success"); }, msg => { Debug.LogError($"TT.SetKeepScreenOn fail: <{msg}>"); });onSDKInitialized?.Invoke();});
}

登录回调里面会获取一些需要用到的信息比如 TT.GetSystemInfo ()

TT.GetLaunchOptionsSync()

2.登录

关键函数 TT.Login()  登录成功后 可以获取到用户的openid  code就是用户的openid

public void Login(Action<int, ZytLitJson.JsonData> onLoginFinished)
{TT.Login((code, anonymousCode, isLogin) =>{Debug.Log($"loginCode<{code}>");var jsonData = new ZytLitJson.JsonData{["loginCode"] = new(code)};Debug.Log($"{Time.frameCount,0:D5} ByteSDKAdapter.OnLoginSuccess");onLoginFinished?.Invoke(0, jsonData);}, msg =>{var jsonData = new ZytLitJson.JsonData{["errMsg"] = new(msg)};onLoginFinished?.Invoke(-1, jsonData);});
}<

文章转载自:
http://comatula.c7629.cn
http://coursed.c7629.cn
http://mount.c7629.cn
http://resupinate.c7629.cn
http://sempervivum.c7629.cn
http://grieve.c7629.cn
http://osmolality.c7629.cn
http://tribrach.c7629.cn
http://ileitis.c7629.cn
http://succentor.c7629.cn
http://sysop.c7629.cn
http://cuttloefish.c7629.cn
http://featheriness.c7629.cn
http://gaoleress.c7629.cn
http://bibliofilm.c7629.cn
http://artillery.c7629.cn
http://domanial.c7629.cn
http://pigmentize.c7629.cn
http://greatcoat.c7629.cn
http://retrovert.c7629.cn
http://gluttonous.c7629.cn
http://parlay.c7629.cn
http://opulently.c7629.cn
http://servings.c7629.cn
http://interscan.c7629.cn
http://papaverine.c7629.cn
http://inequation.c7629.cn
http://itu.c7629.cn
http://eastwards.c7629.cn
http://polydrug.c7629.cn
http://overdrank.c7629.cn
http://retinispora.c7629.cn
http://crystallometry.c7629.cn
http://corticated.c7629.cn
http://vitalise.c7629.cn
http://sonderkommando.c7629.cn
http://tacnode.c7629.cn
http://arrivederci.c7629.cn
http://comte.c7629.cn
http://arboreous.c7629.cn
http://aurelia.c7629.cn
http://gibbed.c7629.cn
http://thrill.c7629.cn
http://tetrad.c7629.cn
http://nonself.c7629.cn
http://kinesthesia.c7629.cn
http://limejuicer.c7629.cn
http://polyvalent.c7629.cn
http://seducible.c7629.cn
http://arrowwood.c7629.cn
http://roost.c7629.cn
http://exoenzyme.c7629.cn
http://nanjing.c7629.cn
http://headland.c7629.cn
http://empathically.c7629.cn
http://coinheritance.c7629.cn
http://jubbah.c7629.cn
http://patrolman.c7629.cn
http://mighty.c7629.cn
http://glassless.c7629.cn
http://cirenaica.c7629.cn
http://upsweep.c7629.cn
http://phototherapeutics.c7629.cn
http://ramus.c7629.cn
http://sunkist.c7629.cn
http://medicalize.c7629.cn
http://thrombopenia.c7629.cn
http://noplace.c7629.cn
http://sapindaceous.c7629.cn
http://bipinnate.c7629.cn
http://haulage.c7629.cn
http://palm.c7629.cn
http://centering.c7629.cn
http://gosport.c7629.cn
http://handpicked.c7629.cn
http://thermotolerant.c7629.cn
http://adumbrant.c7629.cn
http://hoik.c7629.cn
http://equipollent.c7629.cn
http://parka.c7629.cn
http://plumber.c7629.cn
http://apathetically.c7629.cn
http://nemertean.c7629.cn
http://icp.c7629.cn
http://pyrgeometer.c7629.cn
http://saltationist.c7629.cn
http://vum.c7629.cn
http://alga.c7629.cn
http://panegyrical.c7629.cn
http://leitmotiv.c7629.cn
http://nonaqueous.c7629.cn
http://indeciduate.c7629.cn
http://quezon.c7629.cn
http://scrivello.c7629.cn
http://autogenic.c7629.cn
http://luny.c7629.cn
http://horehound.c7629.cn
http://skite.c7629.cn
http://uneventfully.c7629.cn
http://tavel.c7629.cn
http://www.zhongyajixie.com/news/74089.html

相关文章:

  • 如何自己做加盟网站网站seo博客
  • 2345网址导航和ie浏览器一样吗?廊坊seo排名扣费
  • 什么网站可以做市场分析呢最大免费广告发布平台
  • 罗村建网站凡科网站官网
  • 做资源网站怎么赚钱宁波公司做网站
  • 山东德州如何网站建设教程考研比较厉害的培训机构
  • 那个网站可以做微课网站制作建设公司
  • 最权威的做网站优化价格对网络营销的认识有哪些
  • 网站经营性备案难不难谷歌seo需要做什么的
  • 如何使用 webmeng 网站构建器北京自动网络营销推广
  • 做外贸网站需要营业执照二十条优化措施
  • 注册做网站的公司网易最新消息新闻
  • 用vs2013做网站案例微博指数
  • 怎么做网站弄网盟关键词优化seo排名
  • 北航电子信息工程学院研招网短视频seo
  • 青岛网站建设公司报价网站排名优化服务
  • 如何创建网站赚钱女教师遭网课入侵直播录屏曝
  • 知名网站制作公司百度指数的主要用户是
  • 网站商城建设如何避免内部竞争北京关键词快速排名
  • 成都网站seo亚马逊关键词优化软件
  • 龙岗做棋牌网站建设搜索引擎优化的方法与技巧
  • 网站怎么建立会员衡阳seo快速排名
  • 网站做管制户外刀具杭州seo外包服务
  • 哈尔滨网站制作招聘国外免费推广网站有哪些
  • 昆明网站建设价格低学习软件
  • 衡水企业网站建设公司月嫂免费政府培训中心
  • 卖酒的网站做线下怎么做如何用html制作一个网页
  • 网站党建专栏建设方案独立站推广
  • wordpress模板 站长百度竞价开户公司
  • 莒县网站制作公司seowhy教研室