public void UpgradeDroid()
    {
        Debug.Log("Upgrading from: " + _droidBayModel.GetBayIndex());

        if (_droidBayModel.GetDroid() == null)
        {
            //Droid newDroid = DroidFactory.instance.CreateDroid(DroidType.SearchDroid);
            //.GetDroidModel().SetCurrentDroidBay(this);

            //AddDroidToBay(newDroid);
        }
    }
示例#2
0
        public void TestBayIndexStartsAtZero()
        {
            // Arrange
            DroidBayModel dbm = new DroidBayModel();

            // Act
            var expectedResult = 0;

            // Assert
            Assert.AreEqual(dbm.GetBayIndex(), expectedResult);
        }