title: Troubles with FindObjectOfType
body: <p>I'm trying to make a simple damage boost I have 2 scripts, one attached to the projectile and one to the booster</p>
  <p>Projectile:</p>
  <pre class="lang-cs prettyprint-override"><code>public class DamageDealer : MonoBehaviour
  {
      [SerializeField] public int damage = 25;
  
      public int GetDamage() 
      {
          return damage;
      }
  
      public void Hit()
      {
          Destroy(gameObject);
      }
  
      public void IncreaseDamage(int value)
      {
          damage += value;
          Mathf.Clamp(damage, 0, int.MaxValue);
      }
  }
  </code></pre>
  <p>Booster:</p>
  <pre class="lang-cs prettyprint-override"><code>public class DamageUp : MonoBehaviour
  {
      int damageBoost = 50;
      DamageDealer damageDealer;
  
      void Awake()
      {
          damageDealer = FindObjectOfType&lt;DamageDealer&gt;();
  
          Debug.Log(damageDealer); // this returns as null
      }
  
      private void OnTriggerEnter2D(Collider2D other)
      {
          if (other.tag == &quot;Player&quot;)
          {
              damageDealer.IncreaseDamage(damageBoost);
          }
      }
  }
  </code></pre>
  <p>As you can see in the Booster I've already identified what's returning as null, but I'm quite new to <em>unity</em> and <em>C#</em> so I don't know what I'm doing wrong</p>
  <p>Some more info the Projectile is a prefab while the Booster is not (yet)
  scripts are attached and enabled, objects are enabled too.</p>
  <p><code>Hit()</code> and <code>GetDamage()</code> are for another script I have no issue with.</p>
  <p>Thanks in advance.</p>