public void DieReward(WolfAgent wolf) { wolfAgent = wolf; if (wolfAgent == null) { Debug.Log("EnemiesManager - Wolf Agent is null."); wolfAgent = FindObjectOfType <WolfAgent>(); return; } wolfAgent.EnemyDieReward(); }