public void Start() { talking = false; UI_manager = GameObject.FindGameObjectWithTag("UIManager").GetComponent <UI_healthbar>(); touching = false; cc = GetComponent <CircleCollider2D>(); }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player"); player_script = player.GetComponent <Scr_PlayerControl>(); bc = GetComponent <BoxCollider2D>(); ms = GameObject.FindGameObjectWithTag("MasterScript").GetComponent <master_script>(); UI_manager = GameObject.FindGameObjectWithTag("UIManager").GetComponent <UI_healthbar>(); }
public void Start() { UI_manager = GameObject.FindGameObjectWithTag("UIManager").GetComponent <UI_healthbar>(); triggered = false; bc = GetComponent <BoxCollider2D>(); if (dialogue.sentences.Length == 0) { Destroy(gameObject); } }
// Update is called once per frame void Update() { //Debug.Log("CT count: " + ct_count); if (dialogue_index < dialogue_index_max) { if (ct_count == dialogue_CT_count[dialogue_index]) { UI_manager = GameObject.FindGameObjectWithTag("UIManager").GetComponent <UI_healthbar>(); UI_manager.ShowDialogueBox(); FindObjectOfType <DialogueManager>().StartDialogue(dialogues[dialogue_index], gameObject); dialogue_index += 1; } } }
public void Start() { UI_manager = GameObject.FindGameObjectWithTag("UIManager").GetComponent <UI_healthbar>(); }