Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }