資源簡介
用C#開發(fā)的Unity捕魚小游戲源代碼,有需要的同學(xué)可以下載看看,Unity3D的2D游戲開發(fā)項(xiàng)目。

代碼片段和文件信息
using?System.Collections;
using?System.Collections.Generic;
using?UnityEngine;
public?class?BulletBrith?:?MonoBehaviour
{
????public?Gameobject?bullet;
????PoolManager?pool;
????void?Start()
????{
???????pool=?Gameobject.FindWithTag(“pool“).GetComponent();
????}
????void?Update()
????{
????????
????????if?(Input.GetKeyDown(KeyCode.Space))
????????{
????????????Gameobject?obj=?pool.CreateobjectByType(PoolType.bullet);
????????????obj.transform.position?=?transform.position;
????????????obj.transform.rotation?=?transform.rotation;
????????}
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????593??2019-09-26?04:19??UnityFishWeb\BulletBrith.cs
?????文件???????1305??2019-09-26?07:30??UnityFishWeb\bulletMove.cs
?????文件????????463??2019-09-26?06:29??UnityFishWeb\CanonControl.cs
?????文件????5129040??2019-09-26?04:19??UnityFishWeb\fish.unitypackage
?????文件????????913??2019-09-26?07:24??UnityFishWeb\fishBrith.cs
?????文件???????1309??2019-09-26?04:19??UnityFishWeb\fishMove.cs
?????文件???????3740??2019-09-26?04:19??UnityFishWeb\PoolManager.cs
?????文件????????362??2019-09-26?07:30??UnityFishWeb\WebBrithToDie.cs
?????目錄??????????0??2019-12-27?08:50??UnityFishWeb
-----------?---------??----------?-----??----
??????????????5137725????????????????????9
評論
共有 條評論