示例#1
0
    private void ShowVictoryLose()
    {
        VicDefView.Type result   = _battleResultData.isVictorious ? VicDefView.Type.Victory : VicDefView.Type.Defeat;
        BattleResult    matchRes = (BattleResult)NewUIGroup.CreateGroup(NewUIGroup.NAME__BATTLERESULT, NewUIGroup.PrefabProviderType.Battle);

        matchRes.Init(result, _battleResultData, CleaningBattleAndDestroying);
    }
示例#2
0
    void Awake()
    {
        player = GameManager.Instance.GetPlayer();

        canvasTransform    = GameObject.Find("Canvas").transform;
        bottomTransfrom    = canvasTransform.GetChild(0).transform;
        StagePanel         = canvasTransform.GetChild(1).transform;
        characterUI_Parent = canvasTransform.GetChild(2).transform.GetChild(0).transform;
        ToggleButton       = canvasTransform.GetChild(3).GetComponent <Button> ();
        ResultPanel        = canvasTransform.GetChild(4).GetComponent <BattleResult>();

        ToggleButton.onClick.AddListener(ChangeMode);

        ResultPanel.Init(this);
        ResultPanel.gameObject.SetActive(false);
        skillManager = new SkillManager();

        characterManager = gameObject.AddComponent <CharacterManager>();

        BattleState_set(E_BATTLE_STATE.E_INIT);
    }