Ejemplo n.º 1
0
 void Awake()
 {
     m_IsConnectedController = this.GetComponent <IsConnectedController>();
     m_GameSceneFade         = this.GetComponent <GameSceneFade>();
     m_GameTutorial          = this.GetComponent <GameTutorial>();
     m_ButtonSystem          = this.GetComponent <ButtonSystem>();
 }
Ejemplo n.º 2
0
    public void SetTutorial(GameTutorial tutorial)
    {
        // check to make sure there are not overlapping tutorials
        if (tutorial != null && this.tutorial != null)
        {
            return;
        }

        this.tutorial = tutorial;

        // if the incoming tutorial is null...
        if (tutorial == null)
        {
            DataManager.Instance.SaveGameData();                    // now that the tutorial is over, force a save
            IsPlayTutorial();                                       // then check for a new tutorial
        }
    }
Ejemplo n.º 3
0
    private void Start()
    {
        if (jumpTutorial == null || rollTutorial == null || fireTutorial == null)
        {
            Debug.LogError("Some tutorial elements are missing! (Check inspector)");
            return;
        }

        //jumpTut = GameObject.Instantiate<GameObject>
        //    (jumpTutorial).GetComponent<TutElement>();

        //rollTut = GameObject.Instantiate<GameObject>
        //    (jumpTutorial).GetComponent<TutElement>();

        //fireTut = GameObject.Instantiate<GameObject>
        //    (jumpTutorial).GetComponent<TutElement>();

        //jumpTut.transform.parent = canvas.transform;
        //rollTut.transform.parent = canvas.transform;
        //fireTut.transform.parent = canvas.transform;

        instance = this;
    }