protected override void Awake() { base.Awake(); transform.SetSiblingIndex(1); topPageGo = transform.Find("Img_TopPage").gameObject; gameOverPageGo = transform.Find("GameOverPage").gameObject; gameWinPaeGo = transform.Find("GameWinPage").gameObject; menuPageGo = transform.Find("MenuPage").gameObject; img_FinalWave = transform.Find("Img_FinalWave").gameObject; img_StartGame = transform.Find("StartUI").gameObject; prizePageGo = transform.Find("PrizePage").gameObject; topPage = topPageGo.GetComponent <TopPage>(); }
protected override void Awake() { base.Awake(); transform.SetSiblingIndex(1); topPageGO = transform.Find("TopPage").gameObject; gameOverPageGO = transform.Find("GameOverPage").gameObject; winPageGO = transform.Find("GameWinPage").gameObject; menuPageGO = transform.Find("MenuPage").gameObject; prizePageGO = transform.Find("PrizePage").gameObject; startCountDown = transform.Find("StartUI").gameObject; finalWaveImg = transform.Find("Img_FinalWave").gameObject; topPage = topPageGO.GetComponent <TopPage>(); }
protected override void Awake() { base.Awake(); topPageGo = transform.Find("TopPage").gameObject; menuPageGo = transform.Find("MenuPage").gameObject; gameOverPageGo = transform.Find("GameOverPage").gameObject; gameWinPageGo = transform.Find("GameWinPage").gameObject; prizePageGo = transform.Find("PrizePage").gameObject; startUIGo = transform.Find("StartUI").gameObject; finalWaveGo = transform.Find("FinalWave").gameObject; topPage = topPageGo.GetComponent <TopPage>(); menuPage = menuPageGo.GetComponent <MenuPage>(); gameOverPage = gameOverPageGo.GetComponent <GameOverPage>(); gameWinPage = gameWinPageGo.GetComponent <GameWinPage>(); prizePage = prizePageGo.GetComponent <PrizePage>(); }
protected override void Awake() { base.Awake(); //gameController = GameController.Instance; transform.SetSiblingIndex(1);//设置渲染层级在底层,其他UI都是在上面的 topPageGo = transform.Find("Img_TopPage").gameObject; menuPageGo = transform.Find("MenuPage").gameObject; gameOverGo = transform.Find("GameOverPage").gameObject; gameWinGo = transform.Find("GameWinPage").gameObject; img_FinalWave = transform.Find("Img_FinalWave").gameObject; img_StartGame = transform.Find("StartUI").gameObject; prizePageGo = transform.Find("PrizePage").gameObject; topPage = topPageGo.GetComponent <TopPage>(); playerManager = GameManager.Instance.playerManager; //totalRound = gameController.currentStage.mTotalRound; }
public static bool IsThePreviousPageOf(this TopPage currentPage, TopPage topPage) { return((int)topPage - (int)currentPage > 0); }
public static bool IsTheNextPageOf(this TopPage topPage, TopPage page) { return((int)topPage - (int)page == 1); }
public static bool IsTheImport(this TopPage topPage) { return(topPage == TopPage.Import); }
public static bool IsTheMapping(this TopPage topPage) { return(topPage == TopPage.Mapping); }
public static bool IsTheFileUpload(this TopPage topPage) { return(topPage == TopPage.FileUpload); }
public static bool IsTheSelectDataType(this TopPage topPage) { return(topPage == TopPage.SelectDataType); }