예제 #1
0
    //Called from a button in the loginscreen, under MakeProfile. Builds a profile based on the name typed into the box.
    public void createFromLinked(int index)
    {
        if (index == 4)
        {
            list.startGame("Guest", true);
            ContinueToStartScreen();
            return;
        }

        bool lilly = String.Equals(inputNames[(index - 1)].text, "Lilly", StringComparison.OrdinalIgnoreCase);

        if (lilly)
        {
            SetNameUsingIndex(index, inputNames[(index - 1)].text);
            list.startGame("Lilly", true);
            ContinueToStartScreen();
            return;
        }

        if (inputNames[(index - 1)].text == "")
        {
            return;
        }

        SetNameUsingIndex(index, inputNames[(index - 1)].text);
        list.startGame(inputNames[(index - 1)].text, true);

        tutorialPopUp.SetActive(true);

        transform.parent.gameObject.SetActive(false);
    }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        list = FindObjectOfType <equipmentList>();
        if (list == null)
        {
            GameObject adding = Instantiate(prefabbedList, null, false);
            list        = adding.GetComponent <equipmentList>();
            adding.name = "List";

            StateManager check = gameObject.GetComponent <StateManager>();

            if (!check)
            {
                list.startGame("Guest", true);
            }
        }

        combinedShop.Begin(list);

        headButton.interactable = false;
        nextPart.interactable   = false;
        prevPart.interactable   = false;
        EnableEquip             = false;

        foreach (Button item in otherSlots)
        {
            item.interactable = false;
        }

        SetStep(1);

        enableOutlines(-1);
    }
예제 #3
0
    // Use this for initialization
    void Start()
    {
        Time.timeScale = 1;

        list = FindObjectOfType <equipmentList>();
        if (list == null)
        {
            GameObject adding = Instantiate(prefabbedList, null, false);
            list        = adding.GetComponent <equipmentList>();
            adding.name = "List";

            StateManager check = gameObject.GetComponent <StateManager>();

            if (!check)
            {
                list.startGame("Guest", true);
            }
        }

        GameObject can = GameObject.Find("Canvas");

        backs = Instantiate(backPrefab, can.transform, false);

        backgrounds = backs.GetComponent <backgroundManager>();

        backgrounds.startBack(playStatus.subjectSelect);


        SetStep(1);
    }
    public void Find()
    {
        list = FindObjectOfType <equipmentList>();
        if (list == null)
        {
            GameObject adding = Instantiate(prefabbedList, null, false);
            list        = adding.GetComponent <equipmentList>();
            adding.name = "List";

            StateManager check = gameObject.GetComponent <StateManager>();

            if (!check)
            {
                list.startGame("Guest", true);
            }
        }

        GameObject can = GameObject.Find("Canvas");

        backs = Instantiate(backPrefab, can.transform, false);

        backgrounds = backs.GetComponent <backgroundManager>();
    }