コード例 #1
0
 public static void Initialize()
 {
     _instance = GameObject.FindObjectOfType<SoundManager>();
 }
コード例 #2
0
        // Use this for initialization
        private void Awake()
        {

            // Set singleton instance of this object
            _instance = this;

            //Sets reference to scenedata.
            _sceneData = GameData.SceneData;

        }