Beispiel #1
0
 public void SetTarget(Camera cam, GameObject target)
 {
     targetObject = target;
     folowplayer  = GetComponent <FolowPlayer>();
     //disable player controll
     folowplayer.cameraControllEnabeled = false;
 }
Beispiel #2
0
 void Start()
 {
     Cursor.visible = false;
     anim           = GetComponent <Animator>();
     smoothLook     = cam.GetComponent <SmoothLookAt>();
     folowPlayer    = cam.GetComponent <FolowPlayer>();
     CameraControll = cam.GetComponent <CameraControll>();
     playerMovement = GetComponent <PlayerMovement>();
     FindClosest    = GetComponent <FindClosest>();
 }