/// <summary>
        /// Awake this instance.
        /// </summary>
        void Awake( )
        {
            // デフォルトスピード.
            SpeedRight    = PlayRunningGame.Player.PlayerConfig.DefaultSpeedRight;
            AddSpeedRight = 0.0f;

            // Setting up references.
            gameManager = GameObject.Find("_GameManager");

            groundCheck = transform.FindChild("groundCheck");
            dustStorm   = transform.FindChild("Dust Storm").gameObject;

            GameObject BoneAnimation = transform.FindChild("BoneAnimation").gameObject;

            anim = BoneAnimation.GetComponent <Animation>();

            // animation 初期値.
            animStatus = AnimationStatusList.Run;
        }
        /// <summary>
        /// ジャンプ中の処理.
        /// プレイヤー上方移動.
        /// 空中ジャンプ時の演出.
        ///  ジャンプ音再生.
        /// </summary>
        void executeJump( )
        {
            // animation status Jump.
            animStatus = AnimationStatusList.JumpUp;

            // 空中ジャンプ中演出.
            if (true == isDoubleJump)
            {
                // 回転ジャンプ.
                animStatus = AnimationStatusList.JumpRotate;

                PrefabPoolManager.Instance.instantiatePrefab("CFXM3_Hit_Light_B_Air", transform.localPosition, Quaternion.identity);
//				GameObject jumpEffect	= (GameObject)Instantiate( Resources.Load ( "JMO Assets/Cartoon FX/CFX3 Prefabs (Mobile)/Light/CFXM3_Hit_Light_B_Air" ), Vector3.zero, Quaternion.identity );
            }

            setAnimation(animStatus);

            // プレイヤージャンプ処理.
            Jump(JumpForce);
            //  ジャンプSE再生.
            Audio.AudioManager.Instance.PlaySE("se_jump");
        }
        /// <summary>
        /// Update this instance.
        /// </summary>
        void Update()
        {
            // 操作可能.
            if (true == IsController)
            {
                // 地上にいるか判定.
                isGrounded = Physics2D.Linecast(transform.position, groundCheck.position, 1 << LayerMask.NameToLayer("Ground"));

                if (true == isGrounded)
                {
                    // アニメーションがRunステータスでない場合、Runに設定.
                    if (AnimationStatusList.Run != animStatus)
                    {
                        animStatus = AnimationStatusList.Run;
                        setAnimation(animStatus);
                    }

                    // 地上にいる場合のみ、砂埃を出す.
                    if (false == dustStorm.activeSelf)
                    {
                        dustStorm.SetActive(true);
                    }

                    if (jumpEnableCount < JumpEnableCountMax)
                    {
                        jumpEnableCount = JumpEnableCountMax;
                    }
                }
                // // 空中にいる場合は砂埃を出さない.
                else
                {
                    dustStorm.SetActive(false);
                }

                IsJumpEnabaled = false;
                isDoubleJump   = false;

#if UNITY_EDITOR
                if (Input.GetMouseButtonDown(0))
                {
                    if (true == isGrounded)
                    {
                        IsJumpEnabaled = true;
                        jump           = JumpForce;
                    }
                    else if (false == isGrounded && 0 < jumpEnableCount)
                    {
                        jump           = JumpForce;
                        IsJumpEnabaled = true;
                        isDoubleJump   = true;
                        jumpEnableCount--;
                    }
                }
#else
                if (Input.touchCount > 0)
                {
                    foreach (Touch touch in Input.touches)
                    {
                        // タッチ or ムーブの場合.
                        if (
                            Input.GetTouch(0).phase == TouchPhase.Began
                            )
                        {
                            if (true == isGrounded)
                            {
                                IsJumpEnabaled = true;
                            }
                            else if (false == isGrounded && 0 < jumpEnableCount)
                            {
                                IsJumpEnabaled = true;
                                isDoubleJump   = true;
                                jumpEnableCount--;
                            }
                        }
                    }
                }
#endif

                if (true == IsJumpEnabaled && 0 < jumpEnableCount)
                {
                    executeJump();
                }
            }
        }
 /// <summary>
 /// Sets the animation.
 /// </summary>
 /// <param name="status">Status.</param>
 private void setAnimation(AnimationStatusList status)
 {
     Debug.Log(System.Convert.ToString(status));
     anim.Play(System.Convert.ToString(status));
 }