Example #1
0
 void Start()
 {
     currentCamera     = Camera.main;
     oldCameraPosition = currentCamera.transform.position;
     mask = 1 << LayerMask.NameToLayer("is Ground");
     //Every screen dependent variable has to be scaled to fit any resolution
     initialDropDistance   = PersonalMath.ScreenSizeCompensation(initialDropDistance);
     mouseVectorMultiplier = PersonalMath.ScreenSizeCompensation(mouseVectorMultiplier);
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     //Find the Objects.
     player        = GameObject.Find("Player");
     dummy         = GameObject.Find("CameraDummy");
     currentCamera = Camera.main;
     //Convert screen dependent values, to fitting values for the current game screen.
     thresholdWidth  = PersonalMath.ScreenSizeCompensation(thresholdWidth);
     thresholdHeight = PersonalMath.ScreenSizeCompensation(thresholdHeight);
 }