Esempio n. 1
0
 public Portal()
 {
     var mesh = Game.Current.NewMesh("BallTextured");
     Add(_PartList[0] = new MeshStaticPart(mesh) { Texture = Game.Current.GetMaterial("BluePortal.png") });
     _PartList[1] = _Collider = new ObbCollider(mesh); Add(_Collider);
     var receptorMesh = Game.Current.NewMesh("BallTextured");
     Add(_PartList[2] = _Receptor = new MeshImmutableePart(receptorMesh) { Texture = Game.Current.GetMaterial("OrangePortal.png") });
     _SoundEffect = Game.Current.GetSound("Portal.wav", EffectVolume);
 }
        public Portal()
        {
            var mesh = Game.Current.NewMesh("BallTextured");

            Add(_PartList[0] = new MeshStaticPart(mesh)
            {
                Texture = Game.Current.GetMaterial("BluePortal.png")
            });
            _PartList[1] = _Collider = new ObbCollider(mesh); Add(_Collider);
            var receptorMesh = Game.Current.NewMesh("BallTextured");

            Add(_PartList[2] = _Receptor = new MeshImmutableePart(receptorMesh)
            {
                Texture = Game.Current.GetMaterial("OrangePortal.png")
            });
            _SoundEffect = Game.Current.GetSound("Portal.wav", EffectVolume);
        }