コード例 #1
0
 public void Start()
 {
     talking    = false;
     UI_manager = GameObject.FindGameObjectWithTag("UIManager").GetComponent <UI_healthbar>();
     touching   = false;
     cc         = GetComponent <CircleCollider2D>();
 }
コード例 #2
0
ファイル: door.cs プロジェクト: minpark283/Collectathon
 // 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>();
 }