Пример #1
0
 private void Awake()
 {
     zimu = GameObject.Find("UI").transform.Find("字幕UI").GetComponent <ZimuUI>();
     if (GameObject.Find("ItemsData") != null)
     {
         itemsData = GameObject.Find("ItemsData").GetComponent <ItemsData>();
     }
 }
Пример #2
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag("Dog"))
     {
         dog_inBounds = true;
         m_dog        = collision.gameObject;
         if (getOrLose_prefab != null)
         {
             getOrLose     = Instantiate(getOrLose_prefab);
             getOrLostItem = getOrLose.GetComponent <GetOrLostItem>();
         }
         zimu = GameObject.Find("UI").transform.Find("字幕UI").GetComponent <ZimuUI>();
         m_AudioSourceController = AudioSourcesManager.ApplyAudioSourceController();
     }
 }