using System;
using System.Collections.Generic;
using System.Text;
namespace BridgeExample
{
class Program
{
static void Main(string[] args)
{
PatrixScene halfPaper = new HalfPaper();
halfPaper.Mode = new GoldMode();
halfPaper.LoadScene();
PatrixScene matrix = new Matrix();
matrix.Mode = new PrpoertyMode();
matrix.LoadScene();
}
}
abstract class PatrixScene
{
protected GameMode mode;
public GameMode Mode
{
get { return mode; }
set { mode = value; }
}
public abstract void LoadScene();
}
class HalfPaper : PatrixScene
{
public override void LoadScene()
{
Console.WriteLine(\"Load HalfPaper Completed\");
mode.InitScene();
}
}
class Matrix : PatrixScene
{
public override void LoadScene()
{
Console.WriteLine(\"Load Matrix Completed\");
mode.InitScene();
}
}
abstract class GameMode
{
public abstract void InitScene();
}
class PrpoertyMode : GameMode
{
public override void InitScene()
{