Пример #1
0
        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();
            }
        }
Пример #2
0
 public void BindObject(RayBullet bullet)
 {
     this.bullet = bullet;
 }
Пример #3
0
 public void BindObject(RayBullet rayBullet)
 {
     this.rayBullet = rayBullet;
 }