This if is running at every start (both the play mode start and the editor start, since it is set to execute in edit mode which is intended) and i cannot for the life of me figure out why, neither of the conditions are met in the cases its running.
[ExecuteInEditMode]
public class ItemPickup : MonoBehaviour {
public int itemID;
public string itemName;
public bool hasID;
public int uniqueID;
void Update () {
if (hasID == false && uniqueID == 0) {
hasID = true;
print("getting ID");
uniqueID = MCP.mcp.GetUniquePickupID();
}
}
}