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("´´½¨»ًرو"); } }