void Awake()
 {
     mTs = transform;
     mGamePlayer = GetComponent<GamePlayer>();
     mRoleFixedPoint = mGamePlayer.RoleFixedPoint;
     mEyeTs = mRoleFixedPoint.EyeTs;
 }
Example #2
0
    private void InitComponent()
    {
        RoleFixedPoint = GetComponentInChildren<RoleFixedPoint>();

        gameObject.AddComponent<Player_SyncPosition>();
        gameObject.AddComponent<Player_SyncRotation>();
        gameObject.AddComponent<GamePlayerSkill>();

        mPlayerSkill = GetComponent<GamePlayerSkill>();
        mPlayerSkill.Init(this);

        mPlayerController = GetComponent<PlayerController>();
    }