public static void Bind(GlobalProcess process) { if (instances.Contains(process)) { process.OnBind(); instances.Add(process); } }
public static void Unbind(GlobalProcess process) { if (!instances.Contains(process)) { process.OnUnbind(); instances.Remove(process); } }