File tree 1 file changed +4
-2
lines changed
Assets/Scripts/OpenTS2/Engine/Tests
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 8
8
using OpenTS2 . Files ;
9
9
using OpenTS2 . Files . Formats . DBPF ;
10
10
using UnityEngine ;
11
+ using System . IO ;
11
12
12
13
namespace OpenTS2 . Engine . Tests
13
14
{
@@ -24,12 +25,13 @@ public class SimAnimationTest : MonoBehaviour
24
25
25
26
private void Start ( )
26
27
{
28
+ Core . InitializeCore ( ) ;
27
29
var contentManager = ContentManager . Instance ;
28
30
29
31
// Load base game assets.
30
32
contentManager . AddPackages (
31
- Filesystem . GetPackagesInDirectory ( Filesystem . GetPathForProduct ( ProductFlags . BaseGame ) +
32
- "TSData/Res/Sims3D" ) ) ;
33
+ Filesystem . GetPackagesInDirectory ( Path . Combine ( Filesystem . GetPathForProduct ( ProductFlags . BaseGame ) ,
34
+ "TSData/Res/Sims3D" ) ) ) ;
33
35
34
36
// Load all animations involving auskel and put them in the dictionary.
35
37
foreach ( var animationAsset in contentManager . GetAssetsOfType < ScenegraphAnimationAsset > ( TypeIDs . SCENEGRAPH_ANIM ) )
You can’t perform that action at this time.
0 commit comments