Init() private method

private Init ( ) : void
return void
コード例 #1
0
 public void SetHumanPose(ref HumanPose humanPose)
 {
   humanPose.Init();
   if (this.Internal_SetHumanPose(ref humanPose.bodyPosition, ref humanPose.bodyRotation, humanPose.muscles))
     return;
   Debug.LogWarning((object) "HumanPoseHandler is not initialized properly");
 }
コード例 #2
0
 public void GetHumanPose(ref HumanPose humanPose)
 {
     humanPose.Init();
     if (!this.Internal_GetHumanPose(ref humanPose.bodyPosition, ref humanPose.bodyRotation, humanPose.muscles))
     {
         Debug.LogWarning("HumanPoseHandler is not initialized properly");
     }
 }
コード例 #3
0
        public void SetInternalHumanPose(ref HumanPose humanPose)
        {
            if (m_Ptr == IntPtr.Zero)
            {
                throw new NullReferenceException("HumanPoseHandler is not initialized properly");
            }

            humanPose.Init();
            SetInternalHumanPose(ref humanPose.bodyPosition, ref humanPose.bodyRotation, humanPose.muscles);
        }
コード例 #4
0
        public void GetInternalHumanPose(ref HumanPose humanPose)
        {
            bool flag = this.m_Ptr == IntPtr.Zero;

            if (flag)
            {
                throw new NullReferenceException("HumanPoseHandler is not initialized properly");
            }
            humanPose.Init();
            this.GetInternalHumanPose(out humanPose.bodyPosition, out humanPose.bodyRotation, humanPose.muscles);
        }