如何切换人物到指定坐标呢
首先要确保你有加入如下代码:
public Gameobject Play //(在Inspector拖入人物组件)
DontDestroyOnLoad (Player);//防止人物在切换场景的时候被销毁
然后加入如下代码
public GameObject effectToPlay; //Particle effect you want to play
public Transform objectToAnimate; //The game object you want to animate
public GameObject Player;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {