Exemplo n.º 1
0
    //-----------------------------------------------------------------Funciones behavioural del script----------------------------------------------------------------------------

    void Start()
    {
        tutScript = this.gameObject.GetComponent <TutorialScript>();
        initControl();
        initAudio();
        Screen.showCursor = false;

        //Generacion del tablero
        GameObject tablero = GameObject.FindGameObjectWithTag("tablero");

        posInicial = tablero.transform.position;
        for (int i = 0; i < alto; i++)
        {
            for (int j = 0; j < ancho; j++)
            {
                GameObject casillaTemp;
                casillaTemp                  = Instantiate(prefabCasilla, posInicial + Vector3.right * j + Vector3.forward * i, prefabCasilla.transform.rotation) as GameObject;
                casillaTemp.name             = "Casilla_" + i + "_" + j;
                casillaTemp.transform.parent = tablero.transform;
                colorBool colTemp = colorAleatorio(probColor);
                casillaTemp.GetComponent <scriptCasilla>().color = colTemp;
                Material matTemp = colBoolToMat(colTemp);
                casillaTemp.renderer.material = matTemp;
                controlCasilla controlTemp = matToControl(matTemp);
                controlTemp.agregar(casillaTemp);
                casillaTemp.GetComponent <scriptCasilla>().control = controlTemp;
            }
        }
    }
Exemplo n.º 2
0
    /// <summary>
    ///     Implementation of the ITrackableEventHandler function called when the
    ///     tracking state changes.
    /// </summary>
    public void OnTrackableStateChanged(
        TrackableBehaviour.Status previousStatus,
        TrackableBehaviour.Status newStatus)
    {
        if (newStatus == TrackableBehaviour.Status.DETECTED ||
            newStatus == TrackableBehaviour.Status.TRACKED ||
            newStatus == TrackableBehaviour.Status.EXTENDED_TRACKED)
        {
            Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " found");

            GameManager gm = GameManager.instance;
            if (gm.isTutorial)
            {
                TutorialScript ts = TutorialScript.instance;
                if (ts.isClicked && ts.num == 2)
                {
                    ts.ResumeScript();
                }
            }
            OnTrackingFound();
        }
        else if (previousStatus == TrackableBehaviour.Status.TRACKED &&
                 newStatus == TrackableBehaviour.Status.NOT_FOUND)
        {
            //Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " lost");
            OnTrackingLost();
        }
        else
        {
            // For combo of previousStatus=UNKNOWN + newStatus=UNKNOWN|NOT_FOUND
            // Vuforia is starting, but tracking has not been lost or found yet
            // Call OnTrackingLost() to hide the augmentations
            OnTrackingLost();
        }
    }
Exemplo n.º 3
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
            gm       = GameManager.instance;
            gm.InitTutorial();
            gm.isTutorial = true;

            txtExp     = GameObject.Find("explanation").GetComponent <Text>();
            panel      = GameObject.Find("panel_dialog");
            soundOpen  = GameObject.Find("SoundOpen").GetComponent <AudioSource>();
            soundClose = GameObject.Find("SoundClose").GetComponent <AudioSource>();

            if (panel != null)
            {
                animator = panel.GetComponent <Animator>();
                if (animator != null)
                {
                    animator.SetBool("open", true);
                    soundOpen.Play();
                }
            }

            timeSpan  = 0.0f;
            checkTime = 2.0f;

            DisplayText();
        }
    }
Exemplo n.º 4
0
    void PlayNextScript()
    {
        if (_enumerator.MoveNext())
        {
            TutorialScript script = _enumerator.Current.Value;
            _guideText.text = script.text;

            if (!script.eventName.Equals("empty"))
            {
                _curEventName = script.eventName;
                _eventState   = eEventState.START;

                if (_curEventName == "build_tile")
                {
                    GameManager.Instance._playerInput.OnEditMode();
                }
                else if (_curEventName == "remove_fog")
                {
                    GameManager.Instance._playerInput.OnCameraMode();
                }
            }
        }
        else
        {
            EndTutorial();
        }
    }
    public void CreateScript(string folder, string newScriptName)
    {
        bool create       = true;
        var  fileFullPath = Path.Combine(Path.Combine(folder, TutorialManager.TutorialScriptPath), newScriptName + ".json");

        if (File.Exists(fileFullPath))
        {
            if (!EditorUtility.DisplayDialog("⚠️ 警告!", string.Format("已存在名为{0}的脚本, 是否覆盖?", newScriptName), "确认", "取消"))
            {
                create = false;
            }
        }
        if (create)
        {
            var parentFolder = Path.GetDirectoryName(fileFullPath);
            if (!Directory.Exists(parentFolder))
            {
                Directory.CreateDirectory(parentFolder);
            }
            File.Create(fileFullPath).Close();
            AssetDatabase.Refresh();
            _currentScript = null;
            RefreshFileList(fileFullPath);
            SaveCurrentScript(fileFullPath);
        }
    }
Exemplo n.º 6
0
    private void OnMessageReceived(string message)
    {
        if (message == "FINISH")
        {
            TutorialActive = false;
            current        = null;
            Destroy(gameObject);
        }

        if (message == "NEXT")
        {
            stage++; ExecuteStage();
        }


        switch (stage)
        {
        case 0:
        {
            if (message == "Yes")
            {
                stage = 1;
                ExecuteStage();
            }
            else
            {
                Destroy(gameObject);
            }
            break;
        }
        }
    }
Exemplo n.º 7
0
    private bool _IsActionPermited(Swipe gesture)
    {
        bool result = false;

        switch (gesture)
        {
        case Swipe.Left:
            result = TutorialScript.IsActionPermitted(TutorialScript.Actions.SwipeLeft);
            break;

        case Swipe.Right:
            result = TutorialScript.IsActionPermitted(TutorialScript.Actions.SwipeRight);
            break;

        case Swipe.Up:
            result = TutorialScript.IsActionPermitted(TutorialScript.Actions.SwipeUp);
            break;

        case Swipe.Down:
            result = TutorialScript.IsActionPermitted(TutorialScript.Actions.SwipeDown);
            break;

        default:
            result = true;
            break;
        }
        return(result);
    }
Exemplo n.º 8
0
    void Start()
    {
        if (GameManager.Instance.Adblock == false)
        {
            GoogleAdsManager.Instance.IntersAdsShow();
        }

        GoogleAdsManager.Instance.HideBanner();

        SoundManager.Instance.StopBGM();
        Bgm = SoundManager.Instance.LoopSound(Scrs.scripts[GameManager.Instance.NowScenario.No - 1].Bgm
            ? "Bgm_Play2" : "Bgm_Play1");

        //시나리오에 맞는 배경 켜기
        foreach (var Obj in Backgrounds)
        {
            Obj.SetActive(false);
        }
        Backgrounds[GameManager.Instance.NowScenario.No - 1].SetActive(true);

        Light.GetComponent <SpriteRenderer>().DOFade(0, 2).SetLoops(-1, LoopType.Yoyo);

        Character1.sprite = ActorData.Instance.ActorImage[GameManager.Instance.Actors[1].Sprite - 1];
        Character2.sprite = ActorData.Instance.ActorImage[GameManager.Instance.Actors[2].Sprite - 1];

        DelayCrt = StartDelay();
        StartCoroutine(DelayCrt);

        if (GameManager.Instance.Tutorial == true)
        {
            TutorialObj = GameObject.Find("TutorialObj").GetComponent <TutorialScript>();
            TutorialObj.Tutorial();
        }
    }
Exemplo n.º 9
0
 void Start()
 {
     instance             = this;
     fontSize             = tutorialTextbox.fontSize;
     tutorialText         = new string[20];
     tutorialText [0]     = "Hello and welcome to CIIT Library!\nWould you like to play the tutorial?";
     tutorialText [1]     = "Great!\n The goal of the game is to ensure that the library is quiet and orderly.";
     tutorialText [2]     = "For now, let's wait for a student to appear.";
     tutorialText [3]     = "Now here's our first student!";
     tutorialText [4]     = "It is a simple matter to move them.\nJust click then drag and drop them to any chair.";
     tutorialText [5]     = "Now we wait.\n Take note of the two circles that appeared after you dragged them.";
     tutorialText [6]     = "As well as the bar just below the table.";
     tutorialText [7]     = "The green circle represents how much time a student has before leaving.";
     tutorialText [8]     = "The red circle represents how much noise is the student generating. This affects the bar below the table.";
     tutorialText [9]     = " The bar represents the total noise of the table.\nIf full, you will lose a life.";
     tutorialText [10]    = "Now let's wait for a bit and watch it fill up.";
     tutorialText [11]    = "Uh oh! Looks like the bar is half full! Everytime the bar is complete you will receive a warning.";
     tutorialText [12]    = "You have three warnings before the library will be closed down.";
     tutorialText [13]    = "To reduce the bar's noise level, just click on the table!";
     tutorialText [14]    = "Take note that there is a cooldown before you can click again, as shown by this bar.";
     tutorialText [15]    = "Well, that is all and enjoy your stay!";
     tutorialText [16]    = "Well, that is all and enjoy your stay!";
     tutorialTextbox.text = tutorialText [0];
     tutorialPanel.SetActive(true);
     Time.timeScale = 0;
 }
Exemplo n.º 10
0
 public void StartStep(TutorialScript ts, Player player)
 {
     this.ts = ts;
     player.InputController.EnableMoveInput = true;
     halo = GameObject.Find("Halo");
     guis.EnableTutorialOKButton(false);
 }
Exemplo n.º 11
0
    private void Awake()
    {
        // Comprobamos que sea la única instancia
        if (tutInstance == null)
        {
            tutInstance = this;
        }
        else if (tutInstance != this)
        {
            Destroy(this.gameObject);
        }

        // Al cambiar de escenas mantenemos este gameObject
        DontDestroyOnLoad(this.gameObject);
        tutorialCanvas.gameObject.SetActive(false);

        // Inicializamos la lista de tutoriales
        startingTutorials = new List <string>();

        startingTutorials.Add("Control");
        startingTutorials.Add("Key");
        startingTutorials.Add("DACINT");
        startingTutorials.Add("DACEQ");
        startingTutorials.Add("ENE");
    }
 // 准备当前脚本信息
 void PrepareCurrentScript()
 {
     if (HasFileInCurrentGroup(_currentKey))
     {
         bool needReset = false;
         if (_currentScript == null)
         {
             needReset = true;
         }
         else
         {
             if (_selectedScriptIndex != _lastScriptIndex || _currentKey != _lastKey)
             {
                 CheckSaveCurrentScript("切换");
                 needReset = true;
             }
         }
         if (needReset)
         {
             if (_scriptGroupFileInfos[_currentKey].Count > _selectedScriptIndex)
             {
                 string json = File.ReadAllText(_scriptGroupFileInfos[_currentKey][_selectedScriptIndex].FullName);
                 _currentScript = TutorialScript.LoadFromJson(json);
                 ResetVariables(_currentScript);
             }
         }
     }
 }
 // Use this for initialization
 void Awake()
 {
     eHealth = GameObject.FindGameObjectWithTag ("enemy").GetComponent<enemyHealth> ();
     pStats = GameObject.FindGameObjectWithTag ("Player").GetComponent<playerStats> ();
     chckpoint = GameObject.Find("CheckPoints");
     tut = chckpoint.GetComponent<TutorialScript>();
 }
Exemplo n.º 14
0
 private void GetDependencies()
 {
     field    = GameObject.FindObjectOfType <FieldScript>();
     gameplay = GameObject.FindObjectOfType <GameplayScript>();
     timer    = GameObject.FindObjectOfType <TimerScript>();
     app      = GameObject.FindObjectOfType <AppScript>();
     tutorial = GameObject.FindObjectOfType <TutorialScript>();
 }
Exemplo n.º 15
0
 // Use this for initialization
 void Awake()
 {
     tut = chckpoint.GetComponent<TutorialScript>();
     pickedUp = false;
     stats = player.GetComponent<playerStats>();
     support = jeep.GetComponent<supportJeep>();
     isActive = false;
 }
Exemplo n.º 16
0
 public void StartStep(TutorialScript ts, Player player)
 {
     this.ts = ts;
     player.InputController.EnableMoveInput     = true;
     player.InputController.EnableTurningAround = true;
     player.InputController.EnableShootingInput = true;
     guis.EnableTutorialOKButton(false);
 }
    // 左侧脚本列表
    bool DrawScriptList()
    {
        GUILayout.BeginArea(new Rect(_margin, _margin,
                                     _scriptTreeWidth, _currentWindow.position.height - _margin * 2),
                            GUI.skin.GetStyle("AS TextArea"));
        _scriptListScrollPos = EditorGUILayout.BeginScrollView(_scriptListScrollPos);

        if (GUILayout.Button("添加脚本", GUILayout.ExpandWidth(true)))
        {
            EditorAddTutorialScript.Open(this, new Vector2(_scriptTreeWidth, _margin), _buttonWidth);
        }

        EditorGUILayout.Space();

        // 所有脚本列表
        foreach (var pair in _scriptGroupFileInfos)
        {
            var  key     = pair.Key;
            var  list    = pair.Value;
            bool foldout = _scriptGroupOpen[key];
            if (list.Count > 0)
            {
                _scriptGroupOpen[key] = EditorGUILayout.Foldout(_scriptGroupOpen[key], key.Trim('/'));
            }
            else
            {
                _scriptGroupOpen[key] = false;
            }
            if (_scriptGroupOpen[key])
            {
                if (foldout == false)
                {
                    _selectedScriptIndex = 0;
                    _currentScript       = null;
                }
                SetCurrentKey(key);

                var files = new string[list.Count];
                for (int i = 0; i < list.Count; ++i)
                {
                    files[i] = list[i].FullName.Replace("\\", "/").Replace(Application.dataPath.Replace("\\", "/") + "/", "")
                               .Replace(".json", "").Replace(key, "").Replace(TutorialManager.TutorialScriptPath, "").Trim('/');
                }
                var oldIndex = _selectedScriptIndex;
                _selectedScriptIndex = GUILayout.SelectionGrid(_selectedScriptIndex, files, 1);
                if (oldIndex != _selectedScriptIndex)
                {
                    _currentScript = null;
                }
            }
        }
        PrepareCurrentScript();

        EditorGUILayout.EndScrollView();
        GUILayout.EndArea();

        return(false);
    }
 void SaveScript(TutorialScript script, string path)
 {
     if (script != null)
     {
         var json = script.SaveAsJson();
         File.WriteAllText(path, json);
         AssetDatabase.Refresh();
     }
 }
    // Update is called once per frame
    void Update()
    {
        TutorialScript.movePanelToBottom(thisPanel, 500, 0);

        if (cube1 == null && cube2 == null && cube3 == null && cube4 == null)
        {
            StartCoroutine(delayBeforeNextTutorial(nextPanel, DELAY_B4_NEXT_TUT));
        }
    }
Exemplo n.º 20
0
    void Awake()
    {
        if (instance != null)
        {
            throw new System.Exception("You have more than 1 TutorialScript in the scene.");
        }

        // Initialize the static class variables
        instance = this;
    }
Exemplo n.º 21
0
    // Update is called once per frame
    void Update()
    {
        TutorialScript.movePanelToBottom(thisPanel, 500, 0);

        if (moveHereParticles == null)
        {
            StartCoroutine(delayBeforeNextTutorial(nextPanel, DELAY_B4_NEXT_TUT));
            player.GetComponent <PlayerController> ().allowKeypressMovement = false;
        }
    }
Exemplo n.º 22
0
	//public List<TutorialFrame> frames;


	void Start () {
		_instance = this;
		for (int i = 1; i < 15; i++) {
			//Transform t1 = transform.FindChild (string.Format ("Slide ({0})", i));
			if ((i>1) && (i < 14))
				transform.FindChild (string.Format ("Slide ({0})", i)).FindChild("back_btn").GetComponent<Button> ().onClick.AddListener (PrevButtonClick);
			transform.FindChild (string.Format ("Slide ({0})", i)).FindChild("ok_btn").GetComponent<Button> ().onClick.AddListener (NextButtonClick);
		}
		//transform.FindChild ("ok_btn").GetComponent<Button> ().onClick.AddListener (NextButtonClick);

		transform.FindChild ("Slide (14)").FindChild("restart_btn").GetComponent<Button> ().onClick.AddListener (InitWindow);
	}
Exemplo n.º 23
0
    private void LoadScript()
    {
        TextAsset textAsset = Resources.Load <TextAsset>("TutorialScript");
        var       jsonData  = JsonConvert.DeserializeObject <Dictionary <string, JToken> >(textAsset.text);

        foreach (var data in jsonData)
        {
            string         id    = data.Key;
            TutorialScript value = data.Value.ToObject <TutorialScript>();
            _scriptsMap.Add(id, value);
        }
    }
Exemplo n.º 24
0
 void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
         GameObject.DontDestroyOnLoad(gameObject);
     }
 }
Exemplo n.º 25
0
    public void pickSatellite()
    {
        hasSatellite = true;
        SatelliteWatch.SetActive(hasSatellite);

        GameObject     tutorial = (GameObject)Instantiate(tutorialPrefab, new Vector3(0, 0, 0), Quaternion.identity);
        TutorialScript ts       = tutorial.GetComponent <TutorialScript>();

        ts.tutorialText = "Nice, Now you have access to the satellite! Hold Q to activate the satellite vision. With the satellite you can see enemies through walls, their field of view and kill them. With the mouse you have control over the satellite, Left Button you can charge the laser and shoot to kill enemies (Note that there's a limit of charges you can use per level).";
        ts.boxTimer     = 30;
        ts.showText     = true;
    }
Exemplo n.º 26
0
    // Start is called before the first frame update
    void Start()
    {
        tutorial                = GameObject.Find("Tutorial").GetComponent <TutorialScript>();
        loadGameScene           = GameObject.FindGameObjectWithTag("LoadSceneTag").GetComponent <LoadGameScene>();
        titleText               = GameObject.Find("3dPuzzleText");
        playButton              = GameObject.Find("PlayButton");
        settingsButton          = GameObject.Find("SettingsButton");
        settingsMenu            = GameObject.Find("SettingsMenu");
        htpButton               = GameObject.Find("HowToPlayButton");
        exitButton              = GameObject.Find("ExitButton");
        btmButton               = GameObject.Find("BackToMenuButton");
        solveButton             = GameObject.Find("SolveButton");
        planetNameInGame        = GameObject.Find("PlanetNameInGame");
        planetIsDoneText        = GameObject.Find("PlanetIsDoneText");
        pauseMenuBG             = GameObject.Find("PauseMenuBG");
        pauseMenuCanvas         = GameObject.Find("PauseMenuCanvas");
        pauseSettingsButton     = GameObject.Find("PauseSettingsButton");
        pauseMainMenuButton     = GameObject.Find("PauseMainMenuButton");
        dificultySwitcherScript = GameObject.Find("DificultySwitch").GetComponent <DificultySwitcherScript>();
        saveManager             = GameObject.FindGameObjectWithTag("LoadSceneTag").GetComponent <SaveManager>();
        tutorialCompleteText    = GameObject.Find("TutorialCompleteText");
        //difButtons[0] = GameObject.Find("NextDifButton");
        //difButtons[1] = GameObject.Find("PrevDifButton");
        settingsSwitcher = settingsMenu.GetComponent <ConfirmSettingsScript>();
        //playButton.GetComponent<Button>().onClick.AddListener(PlayTask);
        settingsButton.GetComponent <Button>().onClick.AddListener(SettingsTask);
        //btmButton.GetComponent<Button>().onClick.AddListener(BackTask);
        //exitButton.GetComponent<Button>().onClick.AddListener(ExitTask);
        //htpButton.GetComponent<Button>().onClick.AddListener(HowToPlayTask);
        //solveButton.GetComponent<Button>().onClick.AddListener(SolveTask);
        //pauseSettingsButton.GetComponent<Button>().onClick.AddListener(SettingFromPauseTask);
        //pauseMainMenuButton.GetComponent<Button>().onClick.AddListener(MainMenuButtonTask);
        tapController = GameObject.Find("Controller").GetComponent <TapController>();

        btmButton.SetActive(false);
        solveButton.SetActive(false);
        settingsMenu.SetActive(false);
        planetNameInGame.SetActive(false);
        pauseMenuBG.SetActive(false);
        pauseMenuCanvas.SetActive(false);
        planetIsDoneText.SetActive(false);
        solarSystem = GameObject.FindGameObjectWithTag("Sun").GetComponent <SolarSystem>();
        mainCamera  = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraScript>();

        planetInfoPanels = GameObject.FindGameObjectsWithTag("InfoPanel");
        foreach (GameObject infoPanel in planetInfoPanels)
        {
            infoPanel.SetActive(false);
        }

        currentPhase = UI_Phase.MainMenu;
    }
Exemplo n.º 27
0
    public void StartStep(TutorialScript ts, Player player)
    {
        this.ts = ts;
        player.InputController.EnableMoveInput     = false;
        player.InputController.EnableTurningAround = false;
        player.InputController.EnableShootingInput = false;
        player.InputController.CameraRotation      = Vector2.zero;
        guis.EnableTutorialOKButton(true);
        GameDialog dialog = GameUIScript.GetGameUIScript().GetDialog();

        dialog.SetText("\nCONGRATS! YOU'VE COMPLETED THE CALL OF MINI BOOTCAMP! READY TO GO INTO BATTLE?");
        dialog.Show();
    }
Exemplo n.º 28
0
    void OnTriggerEnter(Collider coll)
    {
        if (coll.tag == "Player")
        {
            TutorialScript ts = tutObj.GetComponent <TutorialScript>();
            ts.RunStep(stepInt);
            ts.checkPos = checkPos;
            Destroy(gate);

            ts.enemies  = enemies;
            ts.spawnPos = spawnPos;
        }
    }
Exemplo n.º 29
0
    public void StartStep(TutorialScript ts, Player player)
    {
        this.ts = ts;
        player.InputController.EnableMoveInput     = false;
        player.InputController.EnableTurningAround = false;
        player.InputController.EnableShootingInput = false;
        player.InputController.CameraRotation      = Vector2.zero;
        guis.EnableTutorialOKButton(true);

        GameDialog dialog = GameUIScript.GetGameUIScript().GetDialog();

        dialog.SetText("\nALRIGHT, NOW THAT YOU'VE GOT DOWN THE BASICS, TRY SHOOTING THE ZOMBIE IN FRONT OF YOU.");
        dialog.Show();
    }
Exemplo n.º 30
0
 void Start()
 {
     tutScript         = guiManagerObject.GetComponent <TutorialScript>();
     guiLight          = guiOrbLight.GetComponent <Light>();
     light             = GetComponent <Light>();
     guiOrbPicked      = guiOrbPickedObject.GetComponent <ParticleSystem>();
     orbPickedParticle = orbPicked.GetComponent <ParticleSystem>();
     guiOrbSystem      = guiOrb.GetComponent <ParticleSystem>();
     collider          = GetComponent <Collider>();
     despawnCollider   = despawnColliderObject.GetComponent <Collider>();
     arrayTest         = gameManager.GetComponent <ArrayTest>();
     score             = gameManager.GetComponent <Score>();
     guiManager        = guiManagerObject.GetComponent <GUIManager>();
 }
Exemplo n.º 31
0
    public void StartStep(TutorialScript ts, Player player)
    {
        this.ts = ts;
        player.InputController.EnableMoveInput     = false;
        player.InputController.EnableTurningAround = false;
        player.InputController.EnableShootingInput = false;
        player.InputController.CameraRotation      = Vector2.zero;
        guis.EnableTutorialOKButton(true);

        GameDialog dialog = GameUIScript.GetGameUIScript().GetDialog();

        dialog.SetText("\nOK, NOW YOU'RE READY TO TRY USING YOUR WEAPON. USE THE RIGHT JOYSTICK TO AIM AT AND SHOOT THE BOX IN FRONT OF YOU.");
        dialog.Show();
    }
Exemplo n.º 32
0
    void Start()
    {
        if (PopupMessage.current == null)
        {
            Debug.LogError("PopupMessage.current is null, TutorialScript is depended on it");
            Destroy(gameObject);
            return;
        }
        current        = this;
        TutorialActive = true;
        stage          = 0;

        ExecuteStage();
    }
Exemplo n.º 33
0
    public void StartStep(TutorialScript ts, Player player)
    {
        this.ts = ts;
        player.InputController.EnableMoveInput     = false;
        player.InputController.EnableTurningAround = false;
        player.InputController.EnableShootingInput = false;
        player.InputController.CameraRotation      = Vector2.zero;
        guis.EnableTutorialOKButton(true);

        GameDialog dialog = GameUIScript.GetGameUIScript().GetDialog();

        dialog.SetText("\nTAP AND SLIDE ON THE SCREEN TO ADJUST YOUR LINE OF SIGHT, THEN AIM AT THE BOX IN FRONT OF YOU.");
        dialog.Show();
    }
Exemplo n.º 34
0
 // Use this for initialization
 void Start()
 {
     controller = GetComponentInParent<TutorialScript>();
     sprite = GetComponent<SpriteRenderer>();
     sprite.color = Color.red;
 }
 // Use this for initialization
 void Start() {
     tutorialScript = GameObject.Find("TutorialManager").GetComponent<TutorialScript>();
 }
Exemplo n.º 36
0
 // Use this for initialization
 void Awake()
 {
     isDead = false;
     Instance = this;
     tut = chckPoints.GetComponent<TutorialScript>();
 }
 // Use this for initialization
 void Awake()
 {
     spjeep = jeep.GetComponent<supportJeep>();
     tut = this.GetComponent<TutorialScript>();
     test = player.GetComponent<PlayerMove>();
 }