// Use this for initialization
 void Start()
 {
     // grab scripts
     spearScript  = spear.GetComponent <SpearFish>();
     cameraScript = mainCamera.GetComponent <CameraMovement> ();
     rippleScript = rippleController.GetComponent <CreatePlayerRipple>();
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     circleHeightFromCam = Camera.main.GetComponent <CameraMovement>().cameraDistance - circleHeight;
     rippleScript        = rippleController.GetComponent <CreatePlayerRipple>();
 }