示例#1
0
 void Start()
 {
     GetComponent <Cam>().StopFollow();
     bat.SetParent(null);
     StartCoroutine(SmoothMovement.Follow(bat, finalBatPos, batSmoothTime));
     StartCoroutine(SmoothMovement.Follow(transform, toFollow, smoothTime));
     PlayerPrefs.SetString("End", "true");
 }
示例#2
0
 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));
 }