mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-04 02:49:23 +00:00
Minor fixes
This commit is contained in:
parent
aebf6c2c4e
commit
914bca26e4
14 changed files with 226 additions and 54 deletions
|
@ -33,15 +33,26 @@ namespace ml_pmc
|
|||
HumanPose m_pose;
|
||||
PuppetParser m_puppetParser = null;
|
||||
|
||||
internal PoseCopycat()
|
||||
void Start()
|
||||
{
|
||||
if(Instance == null)
|
||||
Instance = this;
|
||||
}
|
||||
~PoseCopycat()
|
||||
void OnDestroy()
|
||||
{
|
||||
if(Instance == this)
|
||||
Instance = null;
|
||||
|
||||
m_poseHandler?.Dispose();
|
||||
m_poseHandler = null;
|
||||
|
||||
if(m_puppetParser != null)
|
||||
Object.Destroy(m_puppetParser);
|
||||
m_puppetParser = null;
|
||||
|
||||
m_animator = null;
|
||||
m_vrIk = null;
|
||||
m_lookAtIk = null;
|
||||
}
|
||||
|
||||
// Unity events
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue