public void BuildBullet() { InitBullet(); GameObject bulletParent = GameObject.Find("Bullets"); foreach (var movement in bulletParent.transform.GetComponentsInChildren <NormalBulletQueue>()) { NormalBulletQueueGamePlay normalBulletQueueGamePlay = new NormalBulletQueueGamePlay(movement.gameObject); GameManager.gamePlay.AddIGamePlayList(normalBulletQueueGamePlay); } foreach (var rayBulletBehaviour in bulletParent.transform.GetComponentsInChildren <RayBulletBehavior>()) { RayBullet bullet = new RayBullet(rayBulletBehaviour.gameObject); GameManager.gamePlay.AddIGamePlayList(bullet); bullet.Init(); } }
public void BindObject(RayBullet bullet) { this.bullet = bullet; }
public void BindObject(RayBullet rayBullet) { this.rayBullet = rayBullet; }