From 1e50006cf9e2a255ad0ae6c91abbef15075f7dd6 Mon Sep 17 00:00:00 2001 From: GL <2365963573@qq.com> Date: Fri, 20 Dec 2024 18:02:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Role/Bullet.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Role/Bullet.cs b/Role/Bullet.cs index 0aaa310..442fa9a 100644 --- a/Role/Bullet.cs +++ b/Role/Bullet.cs @@ -159,8 +159,8 @@ public class Bullet : MonoBehaviour { GameObject go = Instantiate(effectPre, collision.transform); go.transform.position = new Vector2(collision.transform.position.x, collision.transform.position.y + 0.2f); - // go.GetComponent().bullet = transform.GetComponent(); - //go.GetComponent().Crole = Crole; + go.GetComponent().bullet = this; + Debug.Log("´´½¨»ًرو"); } }