示例#1
0
    public void Start()
    {
        CreatedChar = GameObject.FindGameObjectWithTag("createdChar");
        CreatScript = CreatedChar.GetComponent <CreatController>();

        SceneManager scenes_ = GameObject.Find("Scenes").GetComponent <SceneManager>();

        current_ = scenes_.current;
    }
示例#2
0
    void Awake()
    {
        CreatedChar = GameObject.FindGameObjectWithTag("createdChar");
        CreatScript = CreatedChar.GetComponent <CreatController>();

        canvases[0].SetActive(true);

        for (int i = 1; i < 6; i++)
        {
            canvases[i].SetActive(false);
        }
    }
示例#3
0
    void Awake()
    {
        CreatedChar             = GameObject.FindGameObjectWithTag("createdChar");
        CreatScript             = CreatedChar.GetComponent <CreatController>();
        buttons[0].image.sprite = onButton[0];

        scene4Image = background[0].GetComponent <Image>();
        scene5Image = background[1].GetComponent <Image>();
        scene6Image = background[2].GetComponent <Image>();
        year        = -1;

        canvases[0].SetActive(true);

        for (int i = 1; i < 6; i++)
        {
            canvases[i].SetActive(false);
        }
    }