public void Emit(float dt) { PrimaryElement primaryElement = GetFirstPrimaryElement(); if (primaryElement == null) { return; } if (primaryElement.Mass == 0) { //Storage storage = GetComponent<Storage>(); primaryElement.DeleteObject(); } }