This commit is contained in:
GL 2024-12-20 17:39:48 +08:00
parent 4d4a9e5b0b
commit a7c78891e2

View File

@ -157,8 +157,10 @@ public class Bullet : MonoBehaviour
{
if (effectPre!=null)
{
Instantiate(effectPre, collision.transform).transform.position=new Vector2(collision.transform.position.x, collision.transform.position.y+0.2f);
GameObject go = Instantiate(effectPre, collision.transform);
go.transform.position = new Vector2(collision.transform.position.x, collision.transform.position.y + 0.2f);
// go.GetComponent<Huo>().bullet = transform.GetComponent<Bullet>();
//go.GetComponent<Huo>().Crole = Crole;
Debug.Log("´´½¨»ðÑæ");
}
}