Beispiel #1
0
    public override void TurnFrom(m_Scene scene)
    {
        switch (scene)
        {
        case m_Scene.FightScene:
            currentPage = Page.hero;
            herosPage.SetActive(false);
            heroInstruction.SetActive(true);
            heroButton.SetActive(true);
            heroSlash.SetActive(true);
            break;
            break;

        case m_Scene.MainMenu:
            currentPage = Page.heros;
            herosPage.SetActive(true);
            heroInstruction.SetActive(false);
            heroButton.SetActive(false);
            heroSlash.SetActive(false);
            break;

        case m_Scene.ChooseHero:

            break;

        default:
            Debug.Log("Turn from a Wrong Scene");
            break;
        }
    }
Beispiel #2
0
 public override void TurnFrom(m_Scene scene)
 {
     switch (scene)
     {
     case m_Scene.Instructions:
         bar.gameObject.SetActive(true);
         break;
     }
 }
Beispiel #3
0
    //public void WhenTurnedBackFromInstruction()
    //{
    //    Time.timeScale = 1;
    //    canvas.SetActive(true);
    //    this.enabled = true;
    //}

    public override void TurnFrom(m_Scene scene)
    {
        switch (scene)
        {
        case m_Scene.Instructions:
            canvas.SetActive(true);
            this.enabled = true;
            break;

        case m_Scene.ChooseHero:
            break;

        case m_Scene.MainMenu:
            break;

        default:
            Debug.LogError("Turn back from a wrong Scene.");
            break;
        }
    }
Beispiel #4
0
 public abstract void TurnFrom(m_Scene scene);