// Initialize bone pose position public void InitializeBonePosePosition() { if (m_oBonePosePosition == null) { m_oBonePosePosition = new Uni2DBonePosition(); } m_oBonePosePosition.SavePosition(transform); }
// Save bone manipulated position public bool SaveBoneManipulatedPosition(bool a_bCheckIfDirty) { if (m_oBoneManipulatedPosition == null) { m_oBoneManipulatedPosition = new Uni2DBonePosition(); } if (a_bCheckIfDirty) { return(m_oBoneManipulatedPosition.SavePositionIfNeeded(transform)); } else { m_oBoneManipulatedPosition.SavePosition(transform); return(false); } }