示例#1
0
    private void Reset()
    {
        Power = 0;

        if (_currentPanel != null)
        {
            _currentPanel.Destroy();
        }

        _superStarPanel = null;



        SetProgress(0, MaxPower, true);

        _model.Reset();
        _battlePanel.Restart();

        _battleFinalBg.Hide();
        _battleCommon.Show();

//        _battleCommon.transform.SetSiblingIndex(0);
        _battleCommon.transform.Find("PowerBar").gameObject.Show();

        new AssetLoader().LoadAudio(AssetLoader.GetBackgrounMusicById("battleBgm"),
                                    (clip, loader) => { AudioManager.Instance.PlayBackgroundMusic(clip); });
    }