private void Awake()
    {
        stageCtrl = this;

        MajoDefeated.RemoveAllListeners();
        AllGirlsInGameDie.RemoveAllListeners();


        gameScoreSettings = (GameScoreSettingsIO)Resources.Load("GameScoreAndSettings");

#if UNITY_EDITOR
        //检查是否存在BGMCtrl
        if (GameObject.FindObjectOfType <EasyBGMCtrl>() == null)
        {
            EasyBGMCtrl easyBGMCtrl = Instantiate(PerfebInAsset).GetComponent <EasyBGMCtrl>();
            easyBGMCtrl.IsClone = true;
        }
#endif
    }
Esempio n. 2
0
        void FillWarOrgConstStageLstv(int flag)
        {
            StageCtrl.LoadStageDefInfo();
            List <OrganizeConstRst> rst = warHandle.GetNoticeConstStage(flag);

            lstv_OrgConst.Items.Clear();
            for (int i = 0; i < rst.Count; i++)
            {
                ListViewItem lvi = new ListViewItem();

                lvi.Text = StageCtrl.GetNameById(rst[i].stage.ToString());
                lvi.SubItems.Add(rst[i].legion);
                lvi.SubItems.Add(rst[i].bTime);
                lvi.SubItems.Add(rst[i].eTime);

                lstv_OrgConst.Items.Add(lvi);
            }
            lstv_OrgConst.EndUpdate();
        }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     stg = stm.GetComponent <StageCtrl>();
 }