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

        enemies = new Dictionary <int, GameObject>();

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

        enemies = new Dictionary<int, GameObject>();

        Instance = this;
    }