public void OnTriggerEnter(Collider other) { var info = other.GetComponent <Info>(); if (info) { storage.AddInfo(info.info, 1); } }