public void AfterTest()
        {
            _set = null;

            _joinable  = null;
            _companion = null;
        }
Пример #2
0
        public void AfterTest()
        {
            _otherCompanion = null;
            _companion      = null;

            _set = null;
        }
        public void BeforeTest()
        {
            _companion = new GameObject().AddComponent <MockCompanionComponent>();
            _joinable  = _companion.gameObject.AddComponent <JoinableCompanionComponent>();
            _joinable.CompanionPrefab = _companion.gameObject;

            _set = new GameObject().AddComponent <MockCompanionSetComponent>();
        }
Пример #4
0
        public void BeforeTest()
        {
            _set = new GameObject().AddComponent <TestCompanionSetComponent>();
            _set.gameObject.AddComponent <TestUnityMessageEventDispatcherComponent>().TestAwake();

            _set.TestAwake();

            _companion      = new GameObject().AddComponent <MockCompanionComponent>();
            _otherCompanion = new GameObject().AddComponent <MockCompanionComponent>();
            _companion.GetCompanionDataResult = new CompanionData
            {
                Image = Resources.Load <Sprite>(SpritePath),
                CompanionPrefabReference = "Test/Prefabs/ExampleCompanion",
                PowerCooldown            = 1.4f,
                PowerUseCount            = 1
            };
        }