public void ShowSuperDanmu(int idx) { SuperDanmuMode2 danmu = mUICtrl.ShowSuperDanmu(state.SuperDanmuShowTimeList[idx].Value); state.SuperDanmus.Add(danmu); danmu.Activated = true; }
public SuperDanmuMode2 ShowSuperDanmu(int type) { GameObject danmuGo = mResLoader.Instantiate("ZhiboMode2/SuperDanmu", view.BadLayer); SuperDanmuMode2 danmu = danmuGo.GetComponent <SuperDanmuMode2>(); int randY = Random.Range(-100, -height + 100); danmu.init(gameMode.GetSuperDanmuContent(), (eSuperDanmuType)type, gameMode); danmu.rect.anchoredPosition = new Vector3(width, randY, 0); return(danmu); }
public void DestroySuperDanmu(SuperDanmuMode2 danmu) { mResLoader.ReleaseGO("ZhiboMode2/SuperDanmu", danmu.gameObject); }