Sceneでオブジェクトが消えないようにする。
シーンを切り替えても、オブジェクトが消えないようにする。
using UnityEngine; using System.Collections; public class GameManager : MonoBehaviour { void Awake(){ DontDestroyOnLoad(this.gameObject); } }
DontDestroyOnLoad(transform.gameObject);消してあげる必要がある。
syininmw.seesaa.net