Exemple #1
0
    public void loadWorldTop()
    {
        CanvasGetter.detachCanvasElement();

        WorldCreatFlugHelper.getInstance().setIsLoad(true);
        WorldTop top = Instantiate(worldTopPrefab).GetComponent <WorldTop>();

        top.setState(WorldCreatFlugHelper.getInstance().getLoadWorldId(), this);
        top.transform.SetParent(CanvasGetter.getCanvasElement().transform);
        top.transform.position = new Vector3(Screen.width / 2, Screen.height / 2);
    }
Exemple #2
0
    public void loadTitle()
    {
        CanvasGetter.detachCanvasElement();
        WorldCreatFlugHelper.getInstance().setIsLoad(false);

        foreach (var compornent in titleCompornents)
        {
            compornent.SetActive(true);
        }

        newWorldButton.interactable = true;
        loadButton.interactable     = (WorldCreatFlugHelper.getInstance().getWorldPasses().Count > 0);
    }