// Use this for initialization
 void Start()
 {
     di       = GetComponent <DialogueImplementation> ();
     gameInfo = GameObject.Find("GameInfo");
     gi       = gameInfo.GetComponent <GameInfo> ();
     textbox  = GameObject.Find("TextBox");
     dv       = textbox.GetComponent <DialogueVisuals> ();
 }
 public void Start()
 {
     _originalScale = new Vector3(1, 1, 1);
     _moveObjectMgr = FindObjectOfType <MovingObjectManager>();
     _dialogueimp   = FindObjectOfType <DialogueImplementation>();
     //raftCollider.enabled = false;
     SetAllCollidersStatus(active: false);
 }
 private void Start()
 {
     _player      = GameObject.Find("Player");
     _dialogueimp = FindObjectOfType <DialogueImplementation>();
     _playerCtrl  = FindObjectOfType <PlayerController>();
     _offset      = new Vector3(0, 5, 0);
     _isOn        = false;
     IntroPlatform();
 }
示例#4
0
    void Awake()
    {
        Instance  = this;
        _dialogue = GetComponent <Dialogue>();

        foreach (var gameObject in _optionButtons)
        {
            gameObject.SetActive(false);
        }

        if (_defaultDialogue != null)
        {
            textToRun = _defaultDialogue.text;
        }
    }
示例#5
0
 // Use this for initialization
 void Start()
 {
     dialogue = GameObject.Find("IntroDialogue").GetComponent <Dialogue>();
     imp      = GameObject.Find("IntroDialogue").GetComponent <DialogueImplementation>();
     dialogue.Run(imp.defaultDialogue);
 }