private void _CheckBG() { if (GameManager.instance.GetIDBackground() == 1) { BGDay.SetActive(true); BGNight.SetActive(false); } else if (GameManager.instance.GetIDBackground() == 2) { BGDay.SetActive(false); BGNight.SetActive(true); } }
public void _BGChange() { if (GameManager.instance.GetIDBackground() == 1) { BGNight.SetActive(false); BGDay.SetActive(true); } else if (GameManager.instance.GetIDBackground() == 2) { BGNight.SetActive(true); BGDay.SetActive(false); } }
public void _BGChange() { if (BGDay.activeSelf) { BGNight.SetActive(true); BGDay.SetActive(false); GameManager.instance.SetIDBackground(2); } else if (BGNight.activeSelf) { BGNight.SetActive(false); BGDay.SetActive(true); GameManager.instance.SetIDBackground(1); } }