Esempio n. 1
0
 public override void RemoveFocus()
 {
     if (focus != null)
     {
         focus.DeFocused(transform);
         WorkerManager.Instance.DecreaseCurrentWorkers(unitStorage.GetResourceType());
     }
     focus = null;
     StopTracking();
 }
        public void TestGetResourceType()
        {
            ResourceType expected = ResourceType.Metal;
            UnitStorage  uStorage = new UnitStorage(30);

            uStorage.SetResourceType(expected);

            ResourceType actual = uStorage.GetResourceType();

            Assert.AreEqual(expected, actual);
        }