public void ShowUI(int bShow) { //ShowLog( "show ui " + bShow); TestUI tu = uiroot.GetComponent <TestUI>(); tu.ShowUI(bShow != 0); }
public void IsHumanMadeCorrectly() { TestUI testUI = new TestUI(); Player[] players = testUI.InitializePlayers(testUI); Assert.AreEqual(true, players[0] is Human); }
static void Main(string[] args) { var applicationPathAndParams = ConfigurationManager.AppSettings["ApplicationPath"] + " " + ConfigurationManager.AppSettings["ApplicationParams"] + " " + ConfigurationManager.AppSettings["ApplicationParams2"]; TestUI uI = new TestUI(applicationPathAndParams, ConfigurationManager.AppSettings["ScriptPath"]); }
static void Main(string[] args) { Test test = new Test(); QualityThought.Batch2.NamespaceLibrary.UI.TestUI testui = new NamespaceLibrary.UI.TestUI(); TestUI ui = new TestUI(); QualityThought.Batch2.NamespaceLibrary.Common.TestCommon testCommon = new NamespaceLibrary.Common.TestCommon(); TestCommon testC = new TestCommon(); MyCommon.TestMe testMe = new MyCommon.TestMe(); MyUI.TestMe testMeUI = new MyUI.TestMe(); }
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Debug.Log("Instance already exists!"); Destroy(this); } }
public void CanHumansShootOpponent() { TestUI testUI = new TestUI(); Player testHuman1 = new Human("TestHuman1", testUI); Player testHuman2 = new Human("TestHuman2", testUI); testHuman1.SetShips(); testHuman2.SetShips(); testHuman1.SetOpponent(testHuman2); testHuman1.YourTurn(); Assert.AreEqual(1, testHuman2.board.yourShots.Count); }
public void CanHumanSinkAllOpponentsShips() { TestUI testUI = new TestUI(); Player testPlayer1 = new Human("TestPlayer1", testUI); Player testPlayer2 = new Human("TestPlayer2", testUI); testPlayer1.SetShips(); testPlayer2.SetShips(); testPlayer1.SetOpponent(testPlayer2); //Shoots untill all ships are sunken while (testPlayer2.board.sunkenShips != Settings.shipCount) { testPlayer1.YourTurn(); } Assert.AreEqual(Settings.shipCount, testPlayer2.board.sunkenShips); }
void Awake() { Instance = this; }
// Token: 0x06005242 RID: 21058 RVA: 0x001864D0 File Offset: 0x001846D0 public void Execute(string strParams) { TestUI.SendGMCommand(strParams); }
public void Setup() { Ui = new TestUI(new BciWebBrowser(BciDriverOptions)); }
void Awake() { instance = this; }