コード例 #1
0
    private void Awake()
    {
        GameObject[] objs = GameObject.FindGameObjectsWithTag("GameController");
        if (objs.Length > 1)
        {
            Destroy(gameObject);
            return;
        }
        DontDestroyOnLoad(gameObject);
        Instance = this;

        _dataLoader.Initialize(GetAllLevelNames());
        _sceneLoader.Initialize();
    }