// Use this for initialization
    void Awake()
    {
        PlayerScript = GetComponentInParent <XkPlayerCtrl>();
        PlayerScript.SetPlayerZhiShengJiScript(this);
        PlayerType   = PlayerScript.PlayerSt;
        RigidbodyCom = GetComponent <Rigidbody>();
        switch (PlayerType)
        {
        case PlayerTypeEnum.FeiJi:
            break;

        case PlayerTypeEnum.TanKe:
            RigidbodyCom.useGravity         = false;
            RigidbodyCom.centerOfMass       = MessCenterVal;
            RigidbodyCom.maxAngularVelocity = 2f;
            if (XkGameCtrl.GameJiTaiSt != GameJiTaiType.TanKeJiTai)
            {
                if (Network.peerType != NetworkPeerType.Disconnected)
                {
                    RigidbodyCom.isKinematic = true;
                }
                //RigidbodyCom.isKinematic = true; //test
            }
            Invoke("DelaySetTanKeParent", 2f);
            break;
        }
        IsTestRigMessCenter = false;
    }