Unityでゲームを作っています
LoadScen関数を使うときに、座標を指定してその場所のsceneに飛ぶことは可能でしょうか?
C#
1コード 2using UnityEngine; 3using System.Collections; 4using UnityEngine.SceneManagement; 5public class scendirector : MonoBehaviour { 6 7 // Use this for initialization 8 void Start () { 9 10 if(transform.position.y >= -12277) 11 { 12 SceneManager.LoadScene("back3") 13 } 14 15 16 } 17 18 // Update is called once per frame 19 void Update () { 20 21 } 22}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/01/20 08:34
2017/01/21 05:24