예제 #1
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
            DontDestroyOnLoad(this.gameObject);
        }
        else
        {
            Destroy(this.gameObject);
        }

        world.Init();
    }
예제 #2
0
    private void Awake()
    {
        Instance = this;

        world.Init();
    }
예제 #3
0
    // Start is called before the first frame update
    void Start()
    {
        instance = this;

        ParentMap = parentMap;
    }