// Use this for initialization void Start() { player = FindObjectOfType <Character_Ctrl>(); if (textFile != null) { textLines = (textFile.text.Split('\n')); } if (endAtLine == 0) { endAtLine = textLines.Length - 1; //Invoke("NextScene", 1f); } if (IsActive) { EnableTextBox(); } else { DisableTextBox(); } }
void Start() { player = Game_Manager.Instance().getPlayer().GetComponent <Character_Ctrl>(); }
void Start() { anim = this.GetComponent<Animation>(); curr_HP = max_HP; GameObject player = GameObject.FindGameObjectWithTag("Player"); Player = player.transform; PlayerScript = player.GetComponent<Character_Ctrl>(); }
void Start() { _playercrtl = _player.GetComponent <Character_Ctrl>(); // _uiCtrl = _UI.GetComponent<Control_UI>(); }