Ejemplo n.º 1
0
 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>();
 }
Ejemplo n.º 2
0
    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>();
    }
Ejemplo n.º 3
0
    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>();
    }
Ejemplo n.º 4
0
    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;
    }
Ejemplo n.º 5
0
 public static bool IsThePreviousPageOf(this TopPage currentPage, TopPage topPage)
 {
     return((int)topPage - (int)currentPage > 0);
 }
Ejemplo n.º 6
0
 public static bool IsTheNextPageOf(this TopPage topPage, TopPage page)
 {
     return((int)topPage - (int)page == 1);
 }
Ejemplo n.º 7
0
 public static bool IsTheImport(this TopPage topPage)
 {
     return(topPage == TopPage.Import);
 }
Ejemplo n.º 8
0
 public static bool IsTheMapping(this TopPage topPage)
 {
     return(topPage == TopPage.Mapping);
 }
Ejemplo n.º 9
0
 public static bool IsTheFileUpload(this TopPage topPage)
 {
     return(topPage == TopPage.FileUpload);
 }
Ejemplo n.º 10
0
 public static bool IsTheSelectDataType(this TopPage topPage)
 {
     return(topPage == TopPage.SelectDataType);
 }