예제 #1
0
 void Start()
 {
     player = FindObjectOfType<PlayerController>();
     if(player) {
         Debug.Log("player found");
         player.AddUpdateListener(this);
     } else {
         Debug.LogWarning("player NOT found");
     }
 }