示例#1
0
文件: Ship.cs 项目: totoki-kei/ETL2
        public Ship() : base(0x20000000)
        {
            //model = Program.Instance.Content.Load<Model>("block");
            model = Program.Instance.Content.Load <Model>("paper");

            // 初期状態は非表示&動作無し
            // 各シーンで必要性に応じてActivateまたはDeactivateを行う
            Deactivate();

            HitArea.AddHitArea(new ShipHitArea(this));
        }
示例#2
0
文件: Bullet.cs 项目: totoki-kei/ETL2
        public Bullet(int type) : base(BulletPriority + type)
        {
            id = gid++;

            if (bulletDrawer == null)
            {
                bulletDrawer = new Drawer();
                AddObject(bulletDrawer);
            }

            //GameObject.AddObject(this);
            Enabled = true;
            Visible = true;

            HitArea.AddHitArea(new BulletHitArea(this));
        }