// Start is called before the first frame update void Start() { startPoint = transform.position; groundWallChecks = new GroundWallChecks(transform.gameObject); //check to see if touching ground or wall cameraMainComponent = GameObject.Find("MainCamera"); camShake = cameraMainComponent.GetComponent <CameraShake>(); }
// Use this for initialization private void Start() { rb = GetComponent <Rigidbody2D>(); groundWallChecks = new GroundWallChecks(transform.gameObject); //check to see if touching ground or wall }