コード例 #1
0
    void Awake()
    {
        if (Instance == null)
            Instance = this;
        else
            Destroy(gameObject);


        UpdatePosters();
    }
コード例 #2
0
    void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);

        UpdatePosters();
    }