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