예제 #1
0
 private void OnIconClick()
 {
     if (_missionKey != EMissionKey.None)
     {
         UIWindowBattlePreview wbp = UIWindowsManager.Instance.GetWindow(EUIWindowKey.BattlePreview) as UIWindowBattlePreview;
         wbp.Show(_planetKey, _missionKey);
     }
 }
    private void OnBtnReplayClick()
    {
        ScenesSwitcher.Instance.AddLevelLoadCallback(() => {
            UIWindowBattlePreview wbp = UIWindowsManager.Instance.GetWindow <UIWindowBattlePreview>(EUIWindowKey.BattlePreview);
            wbp.Show(_planetKey, _missionKey);
        }, 2);

        //TODO: load correct planet scene
        FightManager.SceneInstance.Clear();
        Application.LoadLevel("Planet1");
    }