public void TestFailMove() { monster.SetActive(true); bool executed = randomMove.Execute(monster); Assert.AreEqual(false, executed); }
public ActionResult PlayerTakeAction(EntityAction action) { if (playerTookActionThisTick) { return(ActionResult.IGNORED); //Already took an action this tick - ignore action request. } playerTookActionThisTick = true; return(action.Execute() ? ActionResult.SUCCESS : ActionResult.FAILED); }
public void TestFailMove() { bool executed = playerMove.Execute(player); Assert.AreEqual(false, executed); }