コード例 #1
0
 void Start()
 {
     hurtAudio = GetComponent <AudioSource>();
     player    = GameObject.FindGameObjectWithTag("Player").GetComponent <AdventurerAnimation>();
 }
コード例 #2
0
 void Start()
 {
     levelManager = FindObjectOfType <LevelManager>();
     player       = GameObject.FindGameObjectWithTag("Player").GetComponent <AdventurerAnimation>();
 }