コード例 #1
0
 void onStartBattle(Notification notification)
 {
     UIHome.SetActive(false);
     UIBattle.SetActive(true);
     GameManager.Instance.startGame();
     GameManager.Instance.uiState = UIState.E_UI_Battle;
 }
コード例 #2
0
    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");
    }