public void StartDialog()
 {
     if (dialog.lineIndex > 0)
     {
         dialog.GetComponent <Image>().enabled = true;
         dialog.transform.Find("Text").gameObject.SetActive(true);
         dialog.StartWriting();
         started = true;
     }
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     _dScript        = _dScript.GetComponent <DialogueScript>();
     _deshScript     = _deshScript.GetComponent <DeshTutorial>();
     _pigScript      = _pigScript.GetComponent <NewPigScript>();
     _movementScript = _movementScript.GetComponent <MovementController>();
     _waterWheel     = _waterWheel.GetComponent <Animator>();
     _sawBlade       = _sawBlade.GetComponent <Animator>();
     ArchuraAnim     = ArchuraHimself.GetComponent <Animator>();
     jumpSequence.SetActive(false);
     _camera = _camera.GetComponent <Transform>();
     _dScript.hasDialogueEnd = true;
     _orignalRot             = _camera.transform.rotation;
 }