public void Dice() { RollingDice rollingDice = new RollingDice(); rollingDice.Roll(); Assert.InRange(rollingDice.Result, 1, 6); }
private void Start() { redHome = GetComponentInParent <RedHome>(); redHomeRollingDice = GetComponentInParent <RedHome>().rollingDice; aiManager = GetComponentInParent <AIManager>(); diceManager = GameObject.Find("DiceManager").GetComponent <DiceManager>(); }
private void Start() { // _aiTurn = false; _BlueHome = GameObject.Find("BlueHome").GetComponent <BlueHome>(); _RedHome = GameObject.Find("RedHome").GetComponent <RedHome>(); blueHomeRollingDice = GameObject.Find("BlueHome").GetComponent <BlueHome>().rollingDice; redHomeRollingDice = GameObject.Find("RedHome").GetComponent <RedHome>().rollingDice; }
private void Start() { temp = GetComponent <PlayerPiece>(); _movePcOnce = true; blueHome = GetComponentInParent <BlueHome>(); blueHomeRollingDice = blueHome.rollingDice; diceManager = GameObject.Find("DiceManager").GetComponent <DiceManager>(); }
public void AttackMonsterTest() { RollingDice rollingDice = new RollingDice(); Player player = new Player(2); BattleProcessor battleProcessor = new BattleProcessor(); Monster monster = new Yeti(1); monster.Attack = 100; battleProcessor.MonsterAttack(player, monster); Assert.False(battleProcessor.CheckPlayerAlive(player)); }
private void Start() { orangeHomeRollingDice = GetComponentInParent <OrangeHome>().rollingDice; }
private void Start() { greenHomeRollingDice = GetComponentInParent <GreenHome>().rollingDice; }
private void Start() { yellowHomeRollingDice = GetComponentInParent <YellowHome>().rollingDice; }
void Start() { _skipTurn = true; rollingDice = GetComponentInChildren <RollingDice>(); }
private void Start() { violetHomeRollingDice = GetComponentInParent <VioletHome>().rollingDice; }
private void Start() { roseHomeRollingDice = GetComponentInParent <RoseHome>().rollingDice; }
private void Start() { blueHomeRollingDice = GetComponentInParent <BlueHome>().rollingDice; }