示例#1
0
        public void AfterTest()
        {
            _otherCompanion = null;
            _companion      = null;

            _set = null;
        }
示例#2
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
            };
        }