91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 15.84MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-06-13
  • 語言: 其他
  • 標簽: unity3d????

資源簡介

使用當今比較流行的unity引擎完成了貪吃蛇游戲,包含游戲開始界面,游戲界面和結束重新開始界面

資源截圖

代碼片段和文件信息

using?System.Collections;
using?System.Collections.Generic;
using?UnityEngine;
using?UnityEngine.Networking;
using?UnityEngine.UI;

public?class?AddScore?:?NetworkBehaviour?{

public?const?int?InitScore=10;
string?str?=?“長度:“;
Gameobject?length;
[SyncVar]
public?int?score?=?InitScore;

void?Start(){
length?=?Gameobject.Find?(“長度“);
length.GetComponent?().text?=?str;
}

public?void?addScore(int?num){
if?(!isServer)?{
return;
}
score?+=?num;
}

void?Update(){
if?(!isLocalPlayer)?{
return;
}
CmdShowScore();
length.GetComponent?().text?=?str?+?score.ToString?();
}

[Command]
void?CmdShowScore(){
length.GetComponent?().text?=?str?+?score.ToString?();
}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-07-02?22:21??GluttonousSnake\
?????文件????????5714??2017-07-02?19:45??GluttonousSnake\Assembly-CSharp.csproj
?????目錄???????????0??2017-07-02?22:21??GluttonousSnake\Assets\
?????目錄???????????0??2017-07-02?22:21??GluttonousSnake\Assets\audio\
?????文件?????????192??2017-07-02?15:30??GluttonousSnake\Assets\audio.meta
?????文件???????10063??2017-07-02?13:32??GluttonousSnake\Assets\audio\擊殺.mp3
?????文件?????????463??2017-07-02?13:47??GluttonousSnake\Assets\audio\擊殺.mp3.meta
?????文件???????17586??2017-07-02?13:34??GluttonousSnake\Assets\audio\死亡.mp3
?????文件?????????463??2017-07-02?13:47??GluttonousSnake\Assets\audio\死亡.mp3.meta
?????文件??????650376??2017-07-02?13:28??GluttonousSnake\Assets\audio\背景音樂.mp3
?????文件?????????463??2017-07-02?13:47??GluttonousSnake\Assets\audio\背景音樂.mp3.meta
?????目錄???????????0??2017-07-02?22:21??GluttonousSnake\Assets\material\
?????文件?????????192??2017-07-02?15:29??GluttonousSnake\Assets\material.meta
?????文件????????5128??2017-07-02?16:43??GluttonousSnake\Assets\material\background.mat
?????文件?????????208??2017-07-01?19:07??GluttonousSnake\Assets\material\background.mat.meta
?????文件????????5092??2017-06-30?00:01??GluttonousSnake\Assets\material\Rolebody.mat
?????文件?????????180??2017-06-29?21:41??GluttonousSnake\Assets\material\Rolebody.mat.meta
?????目錄???????????0??2017-07-02?22:21??GluttonousSnake\Assets\perfab\
?????文件?????????192??2017-07-02?15:29??GluttonousSnake\Assets\perfab.meta
?????文件???????18156??2017-07-02?18:14??GluttonousSnake\Assets\perfab\MainRole.prefab
?????文件?????????180??2017-06-29?11:23??GluttonousSnake\Assets\perfab\MainRole.prefab.meta
?????文件???????15372??2017-07-02?21:05??GluttonousSnake\Assets\perfab\seed.prefab
?????文件?????????180??2017-06-29?15:17??GluttonousSnake\Assets\perfab\seed.prefab.meta
?????目錄???????????0??2017-07-02?22:21??GluttonousSnake\Assets\scripts\
?????文件?????????192??2017-07-02?15:28??GluttonousSnake\Assets\scripts.meta
?????文件?????????768??2017-07-02?17:19??GluttonousSnake\Assets\scripts\AddScore.cs
?????文件?????????263??2017-06-30?19:47??GluttonousSnake\Assets\scripts\AddScore.cs.meta
?????文件?????????616??2017-07-01?17:39??GluttonousSnake\Assets\scripts\CameraFollow.cs
?????文件?????????263??2017-06-29?11:16??GluttonousSnake\Assets\scripts\CameraFollow.cs.meta
?????文件?????????583??2017-07-02?18:43??GluttonousSnake\Assets\scripts\chooseMainRole.cs
?????文件?????????263??2017-07-02?14:41??GluttonousSnake\Assets\scripts\chooseMainRole.cs.meta
............此處省略2508個文件信息

評論

共有 條評論