Esempio n. 1
0
        public void AfterTest()
        {
            _target = null;

            _weapon   = null;
            _holdable = null;

            _attack.TestDestroy();

            _attack   = null;
            _heldItem = null;
        }
Esempio n. 2
0
        public void BeforeTest()
        {
            _heldItem = new GameObject().AddComponent <MockHeldItemComponent>();
            _attack   = _heldItem.gameObject.AddComponent <TestAttackComponent>();

            _attack.TestStart();

            _holdable = new GameObject().AddComponent <MockHoldableComponent>();
            _holdable.GetHoldableObjectResult = _holdable.gameObject;
            _weapon = _holdable.gameObject.AddComponent <MockWeaponComponent>();

            _target = new GameObject();
        }