示例#1
0
 private void Awake()
 {
     mainCamera        = Camera.main;
     virtualCamera     = GameObject.Find("VCam").GetComponent <Cinemachine.CinemachineVirtualCamera>();
     vcamRaycastCamera = virtualCamera.GetComponentInChildren <Camera>();
     animator          = GetComponent <Animator>();
     rigidBodyPlayer   = GetComponent <Rigidbody>();
     hook       = GetComponent <Hook>();
     aiPath     = GetComponent <AIPath>();
     playerData = playerDefaults.Adapt <Player>();
 }