void OnTriggerEnter(Collider collision) { SourceNut nut = collision.gameObject.GetComponent <SourceNut>(); if (nut) { ConsumeNut(); nut.Consume(); } }
void OnTriggerEnter(Collider collision) { if (IsUpgrading) { return; } SourceNut nut = collision.gameObject.GetComponent <SourceNut>(); if (nut) { ConsumeNut(); nut.Consume(); } }