예제 #1
0
 public void Start()
 {
     talking    = false;
     UI_manager = GameObject.FindGameObjectWithTag("UIManager").GetComponent <UI_healthbar>();
     touching   = false;
     cc         = GetComponent <CircleCollider2D>();
 }
예제 #2
0
 // 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>();
 }
예제 #3
0
 public void Start()
 {
     UI_manager = GameObject.FindGameObjectWithTag("UIManager").GetComponent <UI_healthbar>();
     triggered  = false;
     bc         = GetComponent <BoxCollider2D>();
     if (dialogue.sentences.Length == 0)
     {
         Destroy(gameObject);
     }
 }
예제 #4
0
 // 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;
         }
     }
 }
예제 #5
0
 public void Start()
 {
     UI_manager = GameObject.FindGameObjectWithTag("UIManager").GetComponent <UI_healthbar>();
 }