void onStartBattle(Notification notification) { UIHome.SetActive(false); UIBattle.SetActive(true); GameManager.Instance.startGame(); GameManager.Instance.uiState = UIState.E_UI_Battle; }
void Start() { UIHome = transform.Find("UIHome").gameObject; UIBattle = transform.Find("UIBattle").gameObject; UIHome.SetActive(true); UIBattle.SetActive(false); NotificationCenter.DefaultCenter().AddObserver(this, "onStartBattle"); NotificationCenter.DefaultCenter().AddObserver(this, "onBackHome"); }