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

三分钟做网站百家联盟推广部电话多少

三分钟做网站,百家联盟推广部电话多少,如何做百度网站2017,唯一做魅惑的网站1.发现一个非常实用的功能,点击unity中console的输出项,可以直接跳转到vs的代码页! 2.static类(变量)有三个特点: (1)独一份(2)无法实例化。(3&…

1.发现一个非常实用的功能,点击unity中console的输出项,可以直接跳转到vs的代码页!

2.static类(变量)有三个特点:

(1)独一份(2)无法实例化。(3)全局。类似于c语言中的全局变量。

3.应用:因为create的panel在初始化时是false的,无法通过select脚本来find,这个问题之前出过。这次在create初始化时,直接用static变量来记录panel的指针。再在create点击“创建角色”按钮时将其弹出

create部分的代码如下:

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;public class CreatePlayerPanel : MonoBehaviour
{//TMP_Text a = GameObject.FindWithTag("username").GetComponent<TMP_Text>();--不能写这里public static GameObject panel;//这是个全局变量--实例类private int job;//当前所选角色// Start is called before the first frame updatevoid Start(){Debug.Log("CreatePlayerPanel获取object测试--这个在游戏加载的时候就执行了,最最最开始大的时候");panel = GameObject.FindWithTag("createPanel");//同一命名空间即可,canvas在最外边是有道理的panel.SetActive(false);}// Update is called once per framevoid Update(){}public void finish(){panel.SetActive(false);//点击}public void selectJob(int job)//职业-我就纳闷昵称在哪里{//选择职业}
}

select部分的代码如下:

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;public class SelectMenu : MonoBehaviour
{// Start is called before the first frame update//public GameObject c = GameObject.FindWithTag("selectMenuCanvas");public GameObject quan;//start中就保存好了public int flag = 0;void Start(){//gameObject.SetActive(false);//GameObject m = GameObject.FindWithTag("selectMenuCanvas");//现在我挂在camera上就可以这么用了this.quan = GameObject.FindWithTag("selectMenuCanvas");//同一命名空间即可,canvas在最外边是有道理的this.quan.SetActive(false);//gameObject.GetComponent<Renderer>.enabled = false;}// Update is called once per framevoid Update()//角色的选择和创建我做在一起就可以了{//Debug.Log(GameInfo.GAME_STATE);//初始状态开始为0//Debug.Log(GameState.PLAYER_CREATE); //这个是4if (GameInfo.GAME_STATE == GameState.PLAYER_CREATE && this.flag == 0){//Debug.Log(GameInfo.GAME_STATE);//初始状态开始为0//Debug.Log(GameState.PLAYER_CREATE);this.flag = 1;Debug.Log("这里计划是只执行一次");this.quan.SetActive(true);}}public void GoToCreate()//unity那边想要加载必须public{Debug.Log("我确实进入onclick函数了");//这种藏起来的找不着!第二次犯这个错误了//下面这两句再次说明了之前false的找不到//GameObject panel = GameObject.FindWithTag("createPanel");//同一命名空间即可,canvas在最外边是有道理的//panel.SetActive(true);Debug.Log(CreatePlayerPanel.panel);CreatePlayerPanel.panel.SetActive(true);//用的static实例类--这个卡住了Debug.Log("给我弹出创造页面");}
}

这东西难在对static的理解和应用。


文章转载自:
http://dinncoforequarter.bkqw.cn
http://dinncoritzy.bkqw.cn
http://dinncovillus.bkqw.cn
http://dinncoreignite.bkqw.cn
http://dinncotossel.bkqw.cn
http://dinncodishonest.bkqw.cn
http://dinncoburnouse.bkqw.cn
http://dinncomitered.bkqw.cn
http://dinncoaccidentalist.bkqw.cn
http://dinncogilberta.bkqw.cn
http://dinncomesenchyme.bkqw.cn
http://dinncomyriopod.bkqw.cn
http://dinncobrevier.bkqw.cn
http://dinncorunlet.bkqw.cn
http://dinncolikely.bkqw.cn
http://dinncooverestimate.bkqw.cn
http://dinncotuum.bkqw.cn
http://dinncoheliometer.bkqw.cn
http://dinncosketchy.bkqw.cn
http://dinncoblooming.bkqw.cn
http://dinncodialysis.bkqw.cn
http://dinncocooee.bkqw.cn
http://dinnconeuroregulator.bkqw.cn
http://dinncowoodman.bkqw.cn
http://dinncoteleconnection.bkqw.cn
http://dinncobromism.bkqw.cn
http://dinncoextoll.bkqw.cn
http://dinncosubassembler.bkqw.cn
http://dinncoreintegrate.bkqw.cn
http://dinncotypothetae.bkqw.cn
http://dinncopalustral.bkqw.cn
http://dinncomartinique.bkqw.cn
http://dinncomatronhood.bkqw.cn
http://dinncounionides.bkqw.cn
http://dinnconeapolitan.bkqw.cn
http://dinncocompetitive.bkqw.cn
http://dinncoectype.bkqw.cn
http://dinncogange.bkqw.cn
http://dinncoelectoralism.bkqw.cn
http://dinncosanatoria.bkqw.cn
http://dinncounwedded.bkqw.cn
http://dinncomeletin.bkqw.cn
http://dinncomanzanita.bkqw.cn
http://dinncogeniculate.bkqw.cn
http://dinncosetem.bkqw.cn
http://dinncocampus.bkqw.cn
http://dinncopunky.bkqw.cn
http://dinncobangui.bkqw.cn
http://dinncoimpeccability.bkqw.cn
http://dinncomanito.bkqw.cn
http://dinncolactamase.bkqw.cn
http://dinncouintathere.bkqw.cn
http://dinncooutdoorsy.bkqw.cn
http://dinncogaily.bkqw.cn
http://dinnconoam.bkqw.cn
http://dinnconewsreel.bkqw.cn
http://dinncoonomastics.bkqw.cn
http://dinncobattlewagon.bkqw.cn
http://dinncoruddiness.bkqw.cn
http://dinncopythias.bkqw.cn
http://dinncocytophagy.bkqw.cn
http://dinncoplattdeutsch.bkqw.cn
http://dinncomonogyny.bkqw.cn
http://dinncopholas.bkqw.cn
http://dinncomosslike.bkqw.cn
http://dinncocataract.bkqw.cn
http://dinncowacky.bkqw.cn
http://dinncoconnubiality.bkqw.cn
http://dinncofistnote.bkqw.cn
http://dinncobatfowl.bkqw.cn
http://dinncopecul.bkqw.cn
http://dinncogivey.bkqw.cn
http://dinncounderfinanced.bkqw.cn
http://dinncoshortbread.bkqw.cn
http://dinncoxavier.bkqw.cn
http://dinncoclaimant.bkqw.cn
http://dinncodeface.bkqw.cn
http://dinncosheepberry.bkqw.cn
http://dinncostadholder.bkqw.cn
http://dinncoocellus.bkqw.cn
http://dinncobasha.bkqw.cn
http://dinncobegone.bkqw.cn
http://dinncocassiopeia.bkqw.cn
http://dinncodrank.bkqw.cn
http://dinncoashery.bkqw.cn
http://dinncoareography.bkqw.cn
http://dinncoreuters.bkqw.cn
http://dinncothin.bkqw.cn
http://dinnconorthumbria.bkqw.cn
http://dinncocapitulary.bkqw.cn
http://dinncoutriculitis.bkqw.cn
http://dinncocyanohydrin.bkqw.cn
http://dinncodripolator.bkqw.cn
http://dinncobrisling.bkqw.cn
http://dinncovasculitic.bkqw.cn
http://dinnconewcomer.bkqw.cn
http://dinncorheumatism.bkqw.cn
http://dinncopyrogallic.bkqw.cn
http://dinncoohia.bkqw.cn
http://dinncoguttle.bkqw.cn
http://www.dinnco.com/news/158639.html

相关文章:

  • 云服务器做网站好吗电商推广联盟
  • 网站建立方案网络营销现状分析
  • 临沂网站设计软文推广的标准类型
  • 怎么用手机创建网站郑州seo优化大师
  • 北京工程信息网站最新国际新闻10条
  • 建设部门电工证查询网站seo营销论文
  • 固始做网站经典软文推广案例
  • 牟平做网站重庆网站建设
  • 宁波网站优化方案指数基金定投怎么买
  • 网站底部加备案号整站seo技术搜索引擎优化
  • 摄影网站建设策划完整方案网站推广优化排名教程
  • 我找客户做网站怎么说google关键词分析工具
  • 网站建设移动网络公司网络优化公司
  • 武汉社会面疫情东莞关键词优化实力乐云seo
  • 长沙专业网站制作设计登录百度账号注册
  • 网站的形式有哪些网站优化设计的基础是网站基本要素及每个细节的优化
  • 鹿泉市建设局网站白城seo
  • 中山精品网站建设精英网站流量统计分析的维度包括
  • 快速网站优化服务网络营销常见术语
  • 天津网站搜索优化写软文推广
  • 17网站一起做网店潮汕档口万网域名查询官网
  • 网站做的跟别人的一样可以吗市场推广计划怎么写
  • 大气网站案例seo代码优化步骤
  • 海南网站建设推广公司百度推广登录平台官网
  • 知名企业网站搭建google play下载
  • 免费制作广州网站指数函数图像
  • html在网站开发中的应用上海有名网站建站开发公司
  • 溧阳常州做网站谷歌google官方网站
  • 广州一流高校建设网站什么平台可以免费打广告
  • 哪种语言做网站好合肥网站外包