// Use this for initialization void Start() { int idx = 0; if (PlayerData.GetEndingFlag(1)) { idx += 1; } if (PlayerData.GetEndingFlag(2)) { idx += 2; } if (PlayerData.GetEndingFlag(3)) { idx += 4; } if (PlayerData.GetEndingFlag(0)) { idx = 8; } ResourceManager.LoadIcon("start" + idx, m_Bg); m_StartUpBtn.AddClickDelegate(startUpDelegate); m_MenuGroup.SetActive(false); m_MenuBtn[0].AddClickDelegate(startDelegate); SoundManager.Instance.PlayMusic("title", true, 1f); }
// Use this for initialization void Start() { m_NextBtn.AddClickDelegate(nextDelegate); m_SelectPanel.onSelectEnd += onSelectEnd; m_SelectPanel.gameObject.SetActive(false); next(); }