void Start() { GetComponent <Cam>().StopFollow(); bat.SetParent(null); StartCoroutine(SmoothMovement.Follow(bat, finalBatPos, batSmoothTime)); StartCoroutine(SmoothMovement.Follow(transform, toFollow, smoothTime)); PlayerPrefs.SetString("End", "true"); }
void Start() { transform.position = new Vector2(PlayerPrefs.GetFloat("CamX", 0), PlayerPrefs.GetFloat("CamY", 0)); followPlayer = StartCoroutine(SmoothMovement.Follow(transform, Player.player.transform, smoothTime, false, true)); }