From 44b46d0724be617c7894100ffe3d3e1ee65b7c18 Mon Sep 17 00:00:00 2001 From: Eicy Date: Wed, 10 Jul 2024 18:03:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4README=E7=9A=84=E8=BD=AC?= =?UTF-8?q?=E4=B9=89=E7=AC=A6=20=E5=B9=B6=20=E4=BF=AE=E6=94=B9=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E6=B1=A0=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Pool/{SingletonObjectPooler.cs => SingletonObjectPool.cs} | 0 README.md | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename Pool/{SingletonObjectPooler.cs => SingletonObjectPool.cs} (100%) diff --git a/Pool/SingletonObjectPooler.cs b/Pool/SingletonObjectPool.cs similarity index 100% rename from Pool/SingletonObjectPooler.cs rename to Pool/SingletonObjectPool.cs diff --git a/README.md b/README.md index 2cbe66e..9e302d2 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ public class EnemySpawner : MonoBehaviour { for (var i = 0; i < spawnCount; i++) { - var spawnPosition = transform.position + (Vector3)Random.insideUnitCircle \* spawnRadius; + var spawnPosition = transform.position + (Vector3)Random.insideUnitCircle * spawnRadius; SingletonObjectPool.Instance.Spawn(transform).transform.position = spawnPosition; } }