国产亚洲精品福利在线无卡一,国产精久久一区二区三区,亚洲精品无码国模,精品久久久久久无码专区不卡

當(dāng)前位置: 首頁 > news >正文

移動網(wǎng)站性能網(wǎng)絡(luò)廣告營銷的特點

移動網(wǎng)站性能,網(wǎng)絡(luò)廣告營銷的特點,建設(shè)大馬路小學(xué)網(wǎng)站,煙臺高端網(wǎng)站建設(shè)公司哪家好準(zhǔn)備 創(chuàng)建Scenes場景,Scripts腳本,Prefabs預(yù)制體文件夾 修改背景顏色 選中Main Camera 找到背景 選擇顏色,一種白中透黃的顏色 創(chuàng)建小球 將文件夾里的Circle拖入層級里 選中Circle,位置為左右居中,偏上&…
準(zhǔn)備

![[Pasted image 20250123001920.png]]

  1. 創(chuàng)建Scenes場景,Scripts腳本,Prefabs預(yù)制體文件夾
修改背景顏色
  1. 選中Main Camera
    ![[Pasted image 20250123002236.png]]

  2. 找到背景
    ![[Pasted image 20250123002319.png]]

  3. 選擇顏色,一種白中透黃的顏色
    ![[Pasted image 20250123002353.png]]

創(chuàng)建小球
  1. 將文件夾里的Circle拖入層級里
    ![[Pasted image 20250123002543.png]]

  2. 選中Circle,位置為左右居中,偏上,顏色為黑色,大小縮為0.7
    ![[Pasted image 20250123002729.png]]

![[Pasted image 20250123002928.png]]

分數(shù)
  1. 創(chuàng)建Text
    ![[Pasted image 20250123003014.png]]

  2. 刪除掉EventSystem,因為本例中UI不需要做任何事件
    ![[Pasted image 20250123003233.png]]

  3. 選中Text,點擊重置,文本居中,顏色為白色,內(nèi)容為0
    ![[Pasted image 20250123003330.png]]

![[Pasted image 20250123003522.png]]

  1. 選中Canvas,將渲染模式改為世界空間,接著修改大小,改為100.100
    ![[Pasted image 20250123003619.png]]

![[Pasted image 20250123003850.png]]

  1. 將縮放改為0.01,拖動到小球上
    ![[Pasted image 20250123004104.png]]

  2. 使得Circle和Canvas的位置坐標(biāo)一致,都為0,2,0
    ![[Pasted image 20250123004307.png]]

  3. 選擇MainCamera設(shè)置為Canvas的事件攝像機
    ![[Pasted image 20250123004752.png]]

小球運動
  1. 創(chuàng)建一個腳本,選擇MonoBehaviour,命名為RotateSelf
    ![[Pasted image 20250123005342.png]]

  2. 將此腳本掛載到Circle的下面
    ![[Pasted image 20250123011624.png]]

  3. 編寫腳本

using JetBrains.Annotations;
using UnityEngine;public class RotateSelf : MonoBehaviour
{public float speed = 90;// Start is called once before the first execution of Update after the MonoBehaviour is createdvoid Start(){}// Update is called once per framevoid Update(){transform.Rotate(new Vector3(0, 0, speed * Time.deltaTime));}
}
  1. 在場景中點擊播放,可以看到Circle在逆時針旋轉(zhuǎn),如果想要順時針旋轉(zhuǎn),在speed前加一個負號
    ![[Pasted image 20250123011609.png]]
針頭
  1. 將針導(dǎo)入到層級里,將Pin的大小適當(dāng)放大
    ![[Pasted image 20250123012934.png]]

![[Pasted image 20250123012940.png]]

  1. 制作針的尾部,復(fù)制一個Circle
    ![[Pasted image 20250123013315.png]]

  2. 調(diào)整大小位置顏色
    ![[Pasted image 20250123013335.png]]

![[Pasted image 20250123013353.png]]

  1. 將Pin拖入Prefabs文件夾里,方便進行實例化創(chuàng)建
    ![[Pasted image 20250123013620.png]]

  2. 給針頭添加碰撞器,選中針頭,在檢查器底下的添加組件,搜Circle Collider 2D添加
    ![[Pasted image 20250123013708.png]]

![[Pasted image 20250123013750.png]]

生成針
  1. 創(chuàng)建兩個空對象,將第一個命名為StartPosition
    ![[Pasted image 20250123014250.png]]

  2. 將Pin放到StartPosition的下面,這樣可以進行預(yù)覽,調(diào)整位置
    ![[Pasted image 20250123014347.png]]

![[Pasted image 20250123014223.png]]

  1. 將StartPosition復(fù)制,拖到屏幕外面進行實例化
    ![[Pasted image 20250123014450.png]]

![[Pasted image 20250123014530.png]]

  1. 然后刪去針,改名為SpawnPositon
    ![[Pasted image 20250123014640.png]]

  2. 創(chuàng)建一個空對象,命名為GameManager
    ![[Pasted image 20250123014806.png]]

  3. 創(chuàng)建一個GameManager腳本,掛載到對象下面

using UnityEngine;public class GameManager : MonoBehaviour
{private Transform startPosition;private Transform spawnPosition;public GameObject pinPrefab;// Start is called once before the first execution of Update after the MonoBehaviour is createdvoid Start(){startPosition = GameObject.Find("StartPosition").transform;spawnPosition = GameObject.Find("SpawnPosition").transform;SpawnPin();}// Update is called once per framevoid Update(){}void SpawnPin(){GameObject.Instantiate(pinPrefab, spawnPosition.position, pinPrefab.transform.rotation);}
}
  1. 將PIn實例拖到右邊的Pin Prefab里
    ![[Pasted image 20250123015728.png]]

  2. 點擊運行后屏幕外生成了針
    ![[Pasted image 20250123020249.png]]

http://m.aloenet.com.cn/news/37237.html

相關(guān)文章:

  • 網(wǎng)站里可以添加視頻做背景嗎競價點擊軟件工具
  • 進口食品銷售銷售在那個網(wǎng)站做世界搜索引擎公司排名
  • 必應(yīng)網(wǎng)站收錄在哪在線種子資源庫
  • 做網(wǎng)站哪個服務(wù)器好一套完整的運營方案
  • 學(xué)校網(wǎng)站設(shè)計實驗報告seo個人優(yōu)化方案案例
  • 品牌規(guī)劃外貿(mào)網(wǎng)站推廣與優(yōu)化
  • wordpress 推薦 配置寧波核心關(guān)鍵詞seo收費
  • 可以做打賞視頻的網(wǎng)站全網(wǎng)引擎搜索
  • 高端網(wǎng)站定制建站企業(yè)培訓(xùn)課程ppt
  • 網(wǎng)站設(shè)計怎么做一點首頁就跳轉(zhuǎn)seo是什么意思蜘蛛屯
  • 網(wǎng)站建設(shè)是什么科目今日的新聞頭條10條
  • 北京大興網(wǎng)站建設(shè)公司咨詢產(chǎn)品關(guān)鍵詞
  • 萬州哪里有做網(wǎng)站的關(guān)鍵詞排名查詢工具
  • 自己做網(wǎng)站怎么修改語言營銷策略案例
  • 個人網(wǎng)站論文摘要網(wǎng)頁設(shè)計與制作期末作品
  • wordpress調(diào)用網(wǎng)站標(biāo)題愛站網(wǎng)長尾關(guān)鍵詞搜索
  • 做網(wǎng)站公司哪家好百度競價開戶多少錢
  • 貴州住房和城鄉(xiāng)建設(shè)廳舊網(wǎng)站不受國內(nèi)限制的搜索引擎
  • 石家莊seo網(wǎng)站優(yōu)化價格seo網(wǎng)站優(yōu)化推廣費用
  • 肥西縣市建設(shè)局網(wǎng)站廣州seo公司如何
  • 百度競價做網(wǎng)站建設(shè)百度運營平臺
  • 貴陽市做網(wǎng)站公司網(wǎng)搜網(wǎng)
  • 不加www的網(wǎng)站免費推廣的網(wǎng)站平臺
  • 電子網(wǎng)站建設(shè)方案免費發(fā)帖推廣平臺有哪些
  • 做視頻網(wǎng)站有什么湖南最新消息今天
  • 常州網(wǎng)站制作哪家好推廣計劃書怎么寫
  • 蘭州seo快速優(yōu)化報價移動優(yōu)化課主講:夫唯老師
  • wordpress百度自動推送安裝失敗百度灰色詞優(yōu)化排名
  • 網(wǎng)站建設(shè)需要哪些資料百度推廣官網(wǎng)登錄
  • 蘇州優(yōu)化網(wǎng)站建設(shè)seo知識培訓(xùn)