示例#1
0
 /// <summary>
 /// Setup the emitter with the current pattern
 /// </summary>
 private void Initialize()
 {
     rootBullet   = new TopBullet(bulletManager, this);
     rootBullet.X = this.transform.position.x;
     rootBullet.Y = this.transform.position.y;
     rootBullet.InitTopNode(pattern.RootNode);
 }
        /// <summary>
        /// Setup the emitter with the current pattern
        /// </summary>
        public void Initialize()
        {
            if (rootBullet != null)
            {
                bulletManager.RemoveBullet(rootBullet);
                rootBullet = null;
            }

            rootBullet   = new TopBullet(bulletManager, this);
            rootBullet.X = this.transform.position.x;
            rootBullet.Y = this.transform.position.y;
            rootBullet.InitTopNode(pattern.RootNode);
        }
示例#3
0
 /// <summary>
 /// Setup the emitter with the current pattern
 /// </summary>
 private void Initialize()
 {
     rootBullet = new TopBullet(bulletManager, this);
     rootBullet.X = this.transform.position.x;
     rootBullet.Y = this.transform.position.y;
     rootBullet.InitTopNode(pattern.RootNode);
 }