public void Start() { CreatedChar = GameObject.FindGameObjectWithTag("createdChar"); CreatScript = CreatedChar.GetComponent <CreatController>(); SceneManager scenes_ = GameObject.Find("Scenes").GetComponent <SceneManager>(); current_ = scenes_.current; }
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); } }
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); } }