mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-06-03 00:58:13 -04:00
28 lines
703 B
C#
28 lines
703 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace AssetStudio
|
|
{
|
|
class Animator
|
|
{
|
|
public PPtr m_GameObject;
|
|
public PPtr m_Avatar;
|
|
public PPtr m_Controller;
|
|
|
|
public Animator(AssetPreloadData preloadData)
|
|
{
|
|
var sourceFile = preloadData.sourceFile;
|
|
var reader = preloadData.InitReader();
|
|
reader.Position = preloadData.Offset;
|
|
|
|
m_GameObject = sourceFile.ReadPPtr();
|
|
var m_Enabled = reader.ReadByte();
|
|
reader.AlignStream(4);
|
|
m_Avatar = sourceFile.ReadPPtr();
|
|
m_Controller = sourceFile.ReadPPtr();
|
|
}
|
|
}
|
|
}
|